[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
Tue Feb 21 15:52:19 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=148098

Caio Lima <ticaiolima at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ticaiolima at gmail.com

--- Comment #2 from Caio Lima <ticaiolima at gmail.com> ---
(In reply to comment #1)
> 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()
> ```
> 
> or
> 
> ```
> 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.

Daniel, we are solving this bug in https://bugs.webkit.org/show_bug.cgi?id=168684

Thank you for your report.

-- 
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/20170221/4d44d187/attachment.html>


More information about the webkit-unassigned mailing list