REOPENED 222671
Calling eval using spread doesn't emit direct eval
https://bugs.webkit.org/show_bug.cgi?id=222671
Summary Calling eval using spread doesn't emit direct eval
Saam Barati
Reported 2021-03-03 11:29:33 PST
``` eval(...[]) ``` invokes global eval instead of direct eval
Attachments
patch (9.37 KB, patch)
2021-03-03 16:13 PST, Saam Barati
saam: review-
ews-feeder: commit-queue-
Saam Barati
Comment 1 2021-03-03 16:13:44 PST
Geoffrey Garen
Comment 2 2021-03-03 16:21:11 PST
Comment on attachment 422158 [details] patch r=me
Yusuke Suzuki
Comment 3 2021-03-03 20:31:47 PST
Talked with Saam offline, I think we should remove usesEval from UnlinkedCodeBlock/CodeBlock since this is ambiguous whether we should use `usesEval` or `usesCallEval`. Discussed, and we can put `parserSawEval` in UnlinkedCodeBlockGenerator, and remove `usesEval` from UnlinkedCodeBlock/CodeBlock :)
Yusuke Suzuki
Comment 4 2021-03-03 21:44:07 PST
Comment on attachment 422158 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=422158&action=review > Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.h:345 > + unsigned m_usesCallEval : 1; And I think we need to store this new information to Cached UnlinkedCodeBlock.
Saam Barati
Comment 5 2021-03-04 12:06:37 PST
Oops, this is in the wrong bug
Radar WebKit Bug Importer
Comment 6 2021-03-10 11:30:17 PST
Yusuke Suzuki
Comment 7 2021-04-12 23:14:05 PDT
*** This bug has been marked as a duplicate of bug 222694 ***
Yusuke Suzuki
Comment 8 2021-04-12 23:15:16 PDT
Ah, no. This is different bug from the duped one.
Note You need to log in before you can comment on or make changes to this bug.