Re: [heycam/webidl] A new approach to array-ish classes (#796)

> Note that the above designs will still fail `Array.isArray()`. There's no way to pass that check without getting changes to the 262 spec.

For completeness, I think this could be hacked around by making `ReadonlyArray` and `ObservableArray`s exotic proxy objects around inner `Array`s, since `Array.isArray(new Proxy([], {}))` is true (for some reason). However, I have a very hard time seeing this play well with Web IDL binding infrastructure in implementations.

I guess we could define them as exotic proxy objects in the spec and have implementations do some kind of behind-the-scenes hack, but, meh.

-- 
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/796#issuecomment-577848021

Received on Thursday, 23 January 2020 19:55:59 UTC