[Webkit-unassigned] [Bug 185156] JavaScriptCore should throw SyntaxError when a variable is already declared inside the "with" scope
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 30 22:30:20 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=185156
--- Comment #1 from Saam Barati <sbarati at apple.com> ---
This is surprising given:
if (b) {
var a;
let a;
}
Is not a syntax error. Since with scopes don't require a block as their statement, e.g
```with({}) 20;```
is valid, I would guess this might be a bug in those other engines.
Can you point me to where the spec says this should be a syntax error?
--
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/20180501/7eabf349/attachment.html>
More information about the webkit-unassigned
mailing list