Re: [heycam/webidl] non-readonly [FrozenArray] attributes are footguns as currently specced (#810)

> So in that world, things that currently have readonly FrozenArray attributes would return either ReadonlyArray or ReactToAbleArray?

Yes. There are potential compat issues (most notably breaking `Array.isArray()`), and I'm a bit unsure whether browsers will want to take them on, which is why I focused that thread on providing something for new APIs. But it's a possibility.

> And current code that uses the attibute setter, assuming any such APIs are shipping, would be modified to modify the ReactToAbleArray?

I think the attribute setters could still work. I guess specs would use the same "reaction" spec text to update their internal data when setter is called as when the ReactToAbleArray is mutated.

-- 
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/810#issuecomment-542090427

Received on Tuesday, 15 October 2019 08:02:29 UTC