Re: [whatwg/webidl] No support about @@unscopables inheritance (Issue #1221)

I agree this is an issue.

As discussed with @yuki3 in person, there are two solutions: we could make `Derived.prototype[Symbol.unscopables]` be `{foo: true, bar: true}`, or we could make `Derived.prototype[Symbol.unscopables]` be `{bar: true, __proto__: Base.prototype[Symbol.unscopables]}`.

I suspect the former is easier to implement and a bit simpler. (And theoretically probably a bit faster for engines to optimize, but, if you're using `with` anyway, you're probably already on the super-slow path.)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1221#issuecomment-1283405800
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1221/1283405800@github.com>

Received on Wednesday, 19 October 2022 04:24:06 UTC