Skip to content

Commit

Permalink
Editorial: allow hosts to create ordinary global objects
Browse files Browse the repository at this point in the history
There doesn't seem to be a reason for this hook to only allow *exotic* objects.
  • Loading branch information
Ms2ger committed Nov 22, 2024
1 parent cf5938e commit ca57b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -11794,7 +11794,7 @@ <h1>InitializeHostDefinedRealm ( ): either a normal completion containing ~unuse
1. Set the Realm of _newContext_ to _realm_.
1. Set the ScriptOrModule of _newContext_ to *null*.
1. Push _newContext_ onto the execution context stack; _newContext_ is now the running execution context.
1. If the host requires use of an exotic object to serve as _realm_'s global object, then
1. If the host requires use of a specific object to serve as _realm_'s global object, then
1. Let _global_ be such an object created in a host-defined manner.
1. Else,
1. Let _global_ be OrdinaryObjectCreate(_realm_.[[Intrinsics]].[[%Object.prototype%]]).
Expand Down

0 comments on commit ca57b0a

Please sign in to comment.