Bug 171783 - [JSC] missing ToObject() in GetV / GetMethod spec algorithms
Summary: [JSC] missing ToObject() in GetV / GetMethod spec algorithms
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Minor
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-06 19:58 PDT by Caitlin Potter (:caitp)
Modified: 2017-05-08 07:34 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caitlin Potter (:caitp) 2017-05-06 19:58:38 PDT
In the following test cases (https://jsfiddle.net/4sc58t7g/), even in strict code, the receiver of the accessor should be an Object, per step 2 of https://tc39.github.io/ecma262/#sec-getv.

So, anything which performs GetIterator() (for-of loops, Promise.all, for example) are passing an incorrect receiver to accessor methods.
Comment 1 Caitlin Potter (:caitp) 2017-05-08 07:34:15 PDT
I guess this is working as intended per https://tc39.github.io/ecma262/#sec-ordinaryget --- so nevermind!