[Webkit-unassigned] [Bug 179698] New: Sloppy mode function declaration in block unable to access lexical variable
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 14 15:18:19 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=179698
Bug ID: 179698
Summary: Sloppy mode function declaration in block unable to
access lexical variable
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: adamk at chromium.org
Test case:
{
let a = 42;
function f() { return a }
print(f())
}
This throws "ReferenceError: Can't find variable: a". If I run this in strict mode, it works as expected (printing 42).
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171114/8a80ec34/attachment.html>
More information about the webkit-unassigned
mailing list