<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@gmail.com" title="GSkachkov <gskachkov@gmail.com>"> <span class="fn">GSkachkov</span></a>
</span></b>
<pre>Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=274093&action=diff" name="attach_274093" title="Patch">attachment 274093</a> <a href="attachment.cgi?id=274093&action=edit" title="Patch">[details]</a></span>
Patch
View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=274093&action=review">https://bugs.webkit.org/attachment.cgi?id=274093&action=review</a>
<span class="quote">>>>> Source/JavaScriptCore/ChangeLog:3
>>>> + Invoking super()/super inside of the eval should not lead to SyntaxError
>>>
>>> Do we have a bug open for new.target inside eval?
>>
>> Yes, I did this recently
>> <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>
>
> What I mean is shouldn't it be sufficient to just check m_codeBlock->usesEval()?
> It should never be the case that m_scopeNode->innerArrowEval() is true but m_codeBlock->usesEval() is false.
> Therefore, m_codeBlock->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->usesEval() is true but m_scopeNode-innerArrowEval() is false for this case -> var f = function () { eval('debug("hello world")'); }; f();
m_codeBlock->usesEval() is false but m_scopeNode->innerArrowEval() true for case -> var f = function () { var arr = () => () => eval('debug("hello world")'); }; 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>