[Webkit-unassigned] [Bug 168500] New: [ES6]. Implement Annex B.3.3 function hoisting rules for eval. Do not create space for variable in var scope until binding
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 17 01:20:54 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=168500
Bug ID: 168500
Summary: [ES6]. Implement Annex B.3.3 function hoisting rules
for eval. Do not create space for variable in var
scope until binding
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: gskachkov at gmail.com
'''
function foo() {
{
let boo = 10;
eval(' { function boo() {} } ');
print(boo); // 10
}
print(boo); //should be Reference Error, but now it prints 'undefined'
}
foo();
'''
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170217/9a15e66a/attachment.html>
More information about the webkit-unassigned
mailing list