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

Description Alexey Shvayka 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
Comment 1 Alexey Shvayka 2020-03-13 09:52:01 PDT
Created attachment 393493 [details]
Patch
Comment 2 Keith Miller 2020-03-13 10:07:02 PDT
Comment on attachment 393493 [details]
Patch

r=me.

Huh, I guess that makes sense
Comment 3 WebKit Commit Bot 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>
Comment 4 WebKit Commit Bot 2020-03-13 10:51:57 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2020-03-13 10:52:17 PDT
<rdar://problem/60424235>