Bug 188951
| Summary: | Inconsistent function hoisting in for...in | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | sunlili |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | fpizlo, ysuzuki |
| Priority: | P2 | ||
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
sunlili
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |