[Webkit-unassigned] [Bug 148098] We need a better error message for the use let/const/class in a Statement and not a StatementListItem

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 17 00:44:37 PST 2017


Daniel Ehrenberg <littledan at chromium.org> changed:

           What    |Removed                     |Added
                 CC|                            |littledan at chromium.org

--- Comment #1 from Daniel Ehrenberg <littledan at chromium.org> ---
Whenever you're editing this code, there's a case in this area that I believe should be allowed, but seems to throw a syntax error:

if (true) let: x()


with ({}) let: y()

When I run that in JSC, I get

SyntaxError: Unexpected token ':'. Parse error.

whereas in V8, ChakraCore and SpiderMonkey, let is permitted as a label.

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/e7e31dd8/attachment.html>

More information about the webkit-unassigned mailing list