Bug 168500
Summary: | [ES6]. Implement Annex B.3.3 function hoisting rules for eval. Do not create space for variable in var scope until binding | ||
---|---|---|---|
Product: | WebKit | Reporter: | GSkachkov <gskachkov> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | saam |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 163208 | ||
Bug Blocks: |
GSkachkov
'''
function foo() {
{
let boo = 10;
eval(' { function boo() {} } ');
print(boo); // 10
}
print(boo); //should be Reference Error, but now it prints 'undefined'
}
foo();
'''
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
GSkachkov
Fixed in 163208