<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:littledan@chromium.org" title="Daniel Ehrenberg <littledan@chromium.org>"> <span class="fn">Daniel Ehrenberg</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>littledan@chromium.org
</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#c1">Comment # 1</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:littledan@chromium.org" title="Daniel Ehrenberg <littledan@chromium.org>"> <span class="fn">Daniel Ehrenberg</span></a>
</span></b>
<pre>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.</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>