Bug 188951

Summary: Inconsistent function hoisting in for...in
Product: WebKit Reporter: sunlili
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: fpizlo, ysuzuki
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

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