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.