Re: [whatwg/webidl] ObservableArray types in namespace (#1000)

> However if the motivating "use case" is assigning to ({ __proto__: document.adoptedStyleSheets })[0]

It’s not — it’s a hiccup that tends to show up when [[Set]] is used as a hook for extending own-property-related behavior because it’s easy to miss that a receiver test is needed to keep it from becoming spooky. It happened to [TypedArray](https://github.com/tc39/ecma262/pull/1556) too. It’s fixable with a tiny change & no alterations to the intended behavior, so I’d be surprised if it were controversial to do so.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1000#issuecomment-1116614594

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1000/1116614594@github.com>

Received on Tuesday, 3 May 2022 20:46:41 UTC