<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><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="https://bugs.webkit.org/show_bug.cgi?id=168684#c14">Comment # 14</a>
              on <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="https://bugs.webkit.org/show_bug.cgi?id=168684">bug 168684</a>
              from <span class="vcard"><a class="email" href="mailto:ticaiolima&#64;gmail.com" title="Caio Lima &lt;ticaiolima&#64;gmail.com&gt;"> <span class="fn">Caio Lima</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=168684#c13">comment #13</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=304118&amp;action=diff" name="attach_304118" title="Patch">attachment 304118</a> <a href="attachment.cgi?id=304118&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=304118&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=304118&amp;action=review</a>
&gt; 
&gt; r=me with comments
&gt; 
&gt; &gt; Source/JavaScriptCore/parser/Parser.cpp:1729
&gt; &gt; +    case LET: {
&gt; &gt; +        if (!strictMode()) {
&gt; &gt; +            bool allowFunctionDeclarationAsStatement = false;
&gt; &gt; +            result = parseExpressionOrLabelStatement(context, allowFunctionDeclarationAsStatement);
&gt; &gt; +            shouldSetPauseLocation = !context.shouldSkipPauseLocation(result);
&gt; &gt; +            break;
&gt; &gt; +        }
&gt; &gt; +        goto defaultCase;
&gt; &gt; +    }
&gt; 
&gt; This is duplicate code with he IDENT/AWAIT/YIELD case below. Maybe add a
&gt; goto to that case, or make a lambda that is called both here and there.</span >

Done.

<span class="quote">&gt; &gt; LayoutTests/js/script-tests/let-syntax.js:56
&gt; &gt; +function shouldNotHaveSyntaxErrorSloopyOnly(str)
&gt; 
&gt; Typo: &quot;Sloopy&quot; =&gt; &quot;Sloppy&quot;</span >

Oops. Thanks!

<span class="quote">&gt; &gt; LayoutTests/js/script-tests/let-syntax.js:96
&gt; &gt; +shouldNotHaveSyntaxErrorSloopyOnly(&quot;let x; with ({}) let: y = 3;&quot;);
&gt; 
&gt; Can you also add a test where you omit the &quot;:&quot; after the label. Something
&gt; like:
&gt; 
&gt; &quot;let x; with ({}) let y = 3;&quot;
&gt; 
&gt; And it should be a syntax error in sloppy mode.</span >

Done.

Thank you very much for the review Saam!</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>