Bug 241953

Summary: [JSC] Generic iterator protocol function should be invisible to Function's caller getter
Product: WebKit Reporter: tuanit96
Component: JavaScriptCoreAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, saam, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Unspecified   
OS: Unspecified   

tuanit96
Reported 2022-06-23 18:58:51 PDT
This code should have returned function foo instead of null function foo(arr) { return [...arr]; } let obj = {}; obj[Symbol.iterator] = function bar () { alert(arguments.callee.caller); return { next() { return { done: true }; } }; }; foo(obj);
Attachments
Radar WebKit Bug Importer
Comment 1 2022-06-30 16:25:41 PDT
Yusuke Suzuki
Comment 2 2022-07-17 17:37:55 PDT
EWS
Comment 3 2022-07-18 14:10:36 PDT
Committed 252578@main (1a1af3bd846d): <https://commits.webkit.org/252578@main> Reviewed commits have been landed. Closing PR #2498 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.