<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ES2016] Allow assignment in for-in head in not-strict mode"
   href="https://bugs.webkit.org/show_bug.cgi?id=160955#c15">Comment # 15</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ES2016] Allow assignment in for-in head in not-strict mode"
   href="https://bugs.webkit.org/show_bug.cgi?id=160955">bug 160955</a>
              from <span class="vcard"><a class="email" href="mailto:sbarati&#64;apple.com" title="Saam Barati &lt;sbarati&#64;apple.com&gt;"> <span class="fn">Saam Barati</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=160955#c14">comment #14</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=286755&amp;action=diff" name="attach_286755" title="Patch">attachment 286755</a> <a href="attachment.cgi?id=286755&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=286755&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=286755&amp;action=review</a>
&gt; 
&gt; &gt; JSTests/stress/for-in-tests.js:161
&gt; &gt; +    var foo = function(a, b, first) {
&gt; &gt; +        {   
&gt; &gt; +            let p = 'some-value';
&gt; &gt; +            for (var p = b in a) {}
&gt; &gt; +            if (first)
&gt; &gt; +                return p;
&gt; &gt; +        }
&gt; &gt; +        return p;
&gt; &gt; +    };
&gt; 
&gt; can you also add this test to make sure if throws a runtime exception when
&gt; we write to the const variable:
&gt; foo = function(a, b) {
&gt;     {
&gt;         const p = 'some-value';
&gt;         for (var p = b in a) { }
&gt;     }
&gt; }</span >
Correction: *when we try to write*, we should not successfully write to it.</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>