- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 23 Jan 2020 11:55:57 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 23 January 2020 19:55:59 UTC
> 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