<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Invoking super()/super inside of the eval should not lead to SyntaxError"
   href="https://bugs.webkit.org/show_bug.cgi?id=153864#c11">Comment # 11</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Invoking super()/super inside of the eval should not lead to SyntaxError"
   href="https://bugs.webkit.org/show_bug.cgi?id=153864">bug 153864</a>
              from <span class="vcard"><a class="email" href="mailto:gskachkov&#64;gmail.com" title="GSkachkov &lt;gskachkov&#64;gmail.com&gt;"> <span class="fn">GSkachkov</span></a>
</span></b>
        <pre>Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=274093&amp;action=diff" name="attach_274093" title="Patch">attachment 274093</a> <a href="attachment.cgi?id=274093&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=274093&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=274093&amp;action=review</a>

<span class="quote">&gt;&gt;&gt;&gt; Source/JavaScriptCore/ChangeLog:3
&gt;&gt;&gt;&gt; +        Invoking super()/super inside of the eval should not lead to SyntaxError
&gt;&gt;&gt; 
&gt;&gt;&gt; Do we have a bug open for new.target inside eval?
&gt;&gt; 
&gt;&gt; Yes, I did this recently
&gt;&gt;  <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ES6] Class syntax. Access to new.target inside of the eval should not lead to SyntaxError"
   href="show_bug.cgi?id=155545">https://bugs.webkit.org/show_bug.cgi?id=155545</a>
&gt; 
&gt; What I mean is shouldn't it be sufficient to just check m_codeBlock-&gt;usesEval()?
&gt; It should never be the case that m_scopeNode-&gt;innerArrowEval() is true but m_codeBlock-&gt;usesEval() is false.
&gt; Therefore, m_codeBlock-&gt;usesEval() should cover everything.</span >

Hmm, before it was not, innerArrow... is set only for arrow functions and usesEval only if in current function/block we are using eval. So as for now:
  m_codeBlock-&gt;usesEval() is true but m_scopeNode-innerArrowEval() is false for this case -&gt; var f = function () { eval('debug(&quot;hello world&quot;)'); }; f();
  m_codeBlock-&gt;usesEval() is false but m_scopeNode-&gt;innerArrowEval() true for case -&gt; var f = function () { var arr = () =&gt; () =&gt;  eval('debug(&quot;hello world&quot;)'); }; f();</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>