Bug 209057 - Bound functions should pass correct NewTarget value
Summary: Bound functions should pass correct NewTarget value
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Trivial
Assignee: Alexey Shvayka
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-03-13 09:31 PDT by Alexey Shvayka
Modified: 2020-03-13 10:52 PDT (History)
8 users (show)

See Also:


Attachments
Patch (5.23 KB, patch)
2020-03-13 09:52 PDT, Alexey Shvayka
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>