<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:ticaiolima@gmail.com" title="Caio Lima <ticaiolima@gmail.com>"> <span class="fn">Caio Lima</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - We need a better error message for the use let/const/class in a Statement and not a StatementListItem"
href="https://bugs.webkit.org/show_bug.cgi?id=148098">bug 148098</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>ticaiolima@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - We need a better error message for the use let/const/class in a Statement and not a StatementListItem"
href="https://bugs.webkit.org/show_bug.cgi?id=148098#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - We need a better error message for the use let/const/class in a Statement and not a StatementListItem"
href="https://bugs.webkit.org/show_bug.cgi?id=148098">bug 148098</a>
from <span class="vcard"><a class="email" href="mailto:ticaiolima@gmail.com" title="Caio Lima <ticaiolima@gmail.com>"> <span class="fn">Caio Lima</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=148098#c1">comment #1</a>)
<span class="quote">> 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.</span >
Daniel, we are solving this bug in <a class="bz_bug_link
bz_status_NEW "
title="NEW - [JSC] It should be possible create a label named let when parsing Statement in non strict mode"
href="show_bug.cgi?id=168684">https://bugs.webkit.org/show_bug.cgi?id=168684</a>
Thank you for your report.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>