[Webkit-unassigned] [Bug 35722] 'window.eval' not treated as use of built-in eval operator
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 5 13:49:58 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=35722
Alexey Shvayka <shvaikalesh at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
CC| |shvaikalesh at gmail.com
Resolution|--- |WONTFIX
--- Comment #10 from Alexey Shvayka <shvaikalesh at gmail.com> ---
(In reply to Jon Davis from comment #0)
> var fn = function() {
> window.eval('if (this == window) { alert("Context was NOT retained: FAIL"); } else { alert("Context was retained: PASS"); } ');
> }
> fn.call('not window');
As of 2021, all major browsers (Safari / Chrome / Firefox) report that context was NOT retained, which matches the current spec: see step 6 of https://tc39.es/ecma262/#sec-function-calls-runtime-semantics-evaluation. Property references do not qualify as direct eval (previously known as "built-in eval operator").
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210505/6bdf1e73/attachment.htm>
More information about the webkit-unassigned
mailing list