You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The abstract operation InitializeHostDefinedRealm performs the following steps:</p>
6257
+
6258
6258
<emu-alg>
6259
6259
1. Let _realm_ be CreateRealm().
6260
6260
1. Let _newContext_ be a new execution context.
6261
6261
1. Set the Function of _newContext_ to *null*.
6262
6262
1. Set the Realm of _newContext_ to _realm_.
6263
6263
1. Push _newContext_ onto the execution context stack; _newContext_ is now the running execution context.
6264
-
1. Let _status_ be InitializeHostDefinedRealm(_realm_).
6265
-
1. If _status_ is an abrupt completion, then
6266
-
1. Assert: The first realm could not be created.
6267
-
1. Terminate ECMAScript execution.
6264
+
1. If the host requires use of an exotic object to serve as _realm_'s global object, let _global_ be such an object created in an implementation defined manner. Otherwise, let _global_ be *undefined*, indicating that an ordinary object should be created as the global object.
6265
+
1. If the host requires that the `this` binding in _realm_'s global scope return an object other than the global object, let _thisValue_ be such an object created in an implementation defined manner. Otherwise, let _thisValue_ be *undefined*, indicating that _realm_'s global `this` binding should be the global object.
1. Let _globalObj_ be ? SetDefaultGlobalBindings(_realm_).
6268
+
1. Create any implementation defined global object properties on _globalObj_.
6268
6269
1. In an implementation dependent manner, obtain the ECMAScript source texts (see clause <emu-xref href="#sec-ecmascript-language-source-code"></emu-xref>) for zero or more ECMAScript scripts and/or ECMAScript modules. For each such _sourceText_ do,
6269
6270
1. If _sourceText_ is the source code of a script, then
<p>The abstract operation InitializeHostDefinedRealm with parameter _realm_ performs the following steps:</p>
6280
-
<emu-alg>
6281
-
1. If this implementation requires use of an exotic object to serve as _realm_'s global object, let _global_ be such an object created in an implementation defined manner. Otherwise, let _global_ be *undefined* indicating that an ordinary object should be created as the global object.
6282
-
1. If this implementation requires a specific value for the _realm_'s global `this` binding, let _thisValue_ be that value. Otherwise, let _thisValue_ be *undefined* indicating that the global object should be used.
0 commit comments