[whatwg/webidl] When creating a global object the realm is not yet initialized (Issue #1547)

annevk created an issue (whatwg/webidl#1547)

### What is the issue with the Web IDL Standard?

This hits step 1 of https://webidl.spec.whatwg.org/#internally-create-a-new-object-implementing-the-interface

But also 1.1 of https://webidl.spec.whatwg.org/#define-the-operations and 2.2.1 of https://webidl.spec.whatwg.org/#dfn-create-operation-function.

Some of this could maybe be helped if we set _realm_.[[GlobalObject]] ourselves, but there's a further issue in that https://webidl.spec.whatwg.org/#dfn-exposed needs access to the settings object which isn't created until after the realm in HTML. I think that's information we need to pass in explicitly somehow instead, at least when allocating the global object.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1547
You are receiving this because you are subscribed to this thread.

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

Received on Friday, 28 November 2025 06:18:01 UTC