[Webkit-unassigned] [Bug 167837] New: [JSC] Throw exception in case redeclaration let variable in eval
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Feb 4 09:29:52 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=167837
Bug ID: 167837
Summary: [JSC] Throw exception in case redeclaration let
variable in eval
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 goo() {
{
var error = false;
try {
let f = 20;
eval('var f = 15; eval(" { function f() { }; } ")');
} catch (e) {
error = e instanceof SyntaxError;
}
print(error); // true
}
print(typeof f); // "undefined"
}
--
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/20170204/e37974ef/attachment.html>
More information about the webkit-unassigned
mailing list