[heycam/webidl] Prototype of @@unscopable object (#496)

The @@unscopable property on interface prototype objects (if it exists) currently has the prototype of %ObjectPrototype%, whereas the only such object in ECMAScript [`Array.prototype[@@unscopables]`](https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables) has null as prototype.

Because of the fact that @@unscopables is [used](https://tc39.github.io/ecma262/#sec-object-environment-records-hasbinding-n) with `ToBoolean(Get())` rather than something more specific like `HasOwnProperty()`, we are blocking more properties than we intended to (the %ObjectPrototype% properties). We should change this.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/496

Received on Monday, 11 December 2017 09:50:34 UTC