Re: [whatwg/webidl] Allow for global objects with a mutable prototype chain (PR #1381)

@annevk commented on this pull request.



> +A [=realm=] can be defined to
+<dfn export for="realm" lt="has a mutable global prototype chain">have a mutable global prototype chain</dfn>.
+If a [=realm=] is not defined as such, the prototype of its global object can not be changed.

I keep having to learn that conditional fields I have added in the past have led to some kind of issue that required changing them to always-present fields. I would suggest we make this an always-present field of realms with a default of false.

> Each realm has an associated "uses mutable global prototype chain" (a boolean). It is initially false.
>
> Note: This allows the ShadowRealm global to have a mutable prototype.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1381#pullrequestreview-1814892488
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1381/review/1814892488@github.com>

Received on Thursday, 11 January 2024 07:54:45 UTC