Bug 209057

Summary: Bound functions should pass correct NewTarget value
Product: WebKit Reporter: Alexey Shvayka <ashvayka>
Component: JavaScriptCoreAssignee: Alexey Shvayka <ashvayka>
Status: RESOLVED FIXED    
Severity: Trivial CC: commit-queue, ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Alexey Shvayka
Reported 2020-03-13 09:31:51 PDT
Test case: Reflect.construct(function() {}.bind(), [], Set) instanceof Set Expected: true Actual: false ECMA262: https://tc39.es/ecma262/#sec-bound-function-exotic-objects-construct-argumentslist-newtarget (steps 5-6) Test262: https://test262.report/browse/language/statements/class/subclass/bound-function.js
Attachments
Patch (5.23 KB, patch)
2020-03-13 09:52 PDT, Alexey Shvayka
no flags
Alexey Shvayka
Comment 1 2020-03-13 09:52:01 PDT
Keith Miller
Comment 2 2020-03-13 10:07:02 PDT
Comment on attachment 393493 [details] Patch r=me. Huh, I guess that makes sense
WebKit Commit Bot
Comment 3 2020-03-13 10:51:55 PDT
Comment on attachment 393493 [details] Patch Clearing flags on attachment: 393493 Committed r258410: <https://trac.webkit.org/changeset/258410>
WebKit Commit Bot
Comment 4 2020-03-13 10:51:57 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 5 2020-03-13 10:52:17 PDT
Note You need to log in before you can comment on or make changes to this bug.