Bug 171783
Summary: | [JSC] missing ToObject() in GetV / GetMethod spec algorithms | ||
---|---|---|---|
Product: | WebKit | Reporter: | Caitlin Potter (:caitp) <caitp> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Minor | CC: | caitp |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | All | ||
OS: | All |
Caitlin Potter (:caitp)
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Caitlin Potter (:caitp)
I guess this is working as intended per https://tc39.github.io/ecma262/#sec-ordinaryget --- so nevermind!