Bug 188951 - Inconsistent function hoisting in for...in
Summary: Inconsistent function hoisting in for...in
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-26 00:25 PDT by sunlili
Modified: 2018-08-30 10:38 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sunlili 2018-08-26 00:25:37 PDT
Executing following code :
-----------------------------------------
var a = new Array(1);
for (var i in a){
	print("BT_FLAG");
	function v9() {
	}
}
print(typeof v9);
-----------------------------------------
Output of JavaScriptCore :
function

However, output of other js engines(v8, ch, spm) is :
undefined

BT group
2018.08.26