|
@@ -169,13 +169,13 @@ VM::VM(OwnPtr<CustomData> custom_data, ErrorMessages error_messages)
|
|
return HandledByHost::Handled;
|
|
return HandledByHost::Handled;
|
|
};
|
|
};
|
|
|
|
|
|
- // 3.6.1 HostInitializeShadowRealm ( realm ), https://tc39.es/proposal-shadowrealm/#sec-hostinitializeshadowrealm
|
|
|
|
- // https://github.com/tc39/proposal-shadowrealm/pull/410
|
|
|
|
|
|
+ // 3.6.1 HostInitializeShadowRealm ( realm, context, O ), https://tc39.es/proposal-shadowrealm/#sec-hostinitializeshadowrealm
|
|
host_initialize_shadow_realm = [](Realm&, NonnullOwnPtr<ExecutionContext>, ShadowRealm&) -> ThrowCompletionOr<void> {
|
|
host_initialize_shadow_realm = [](Realm&, NonnullOwnPtr<ExecutionContext>, ShadowRealm&) -> ThrowCompletionOr<void> {
|
|
- // The host-defined abstract operation HostInitializeShadowRealm takes argument realm (a Realm Record) and returns
|
|
|
|
- // either a normal completion containing unused or a throw completion. It is used to inform the host of any newly
|
|
|
|
- // created realms from the ShadowRealm constructor. The idea of this hook is to initialize host data structures
|
|
|
|
- // related to the ShadowRealm, e.g., for module loading.
|
|
|
|
|
|
+ // The host-defined abstract operation HostInitializeShadowRealm takes arguments realm (a Realm Record),
|
|
|
|
+ // context (an execution context), and O (a ShadowRealm object) and returns either a normal completion
|
|
|
|
+ // containing unused or a throw completion. It is used to inform the host of any newly created realms
|
|
|
|
+ // from the ShadowRealm constructor. The idea of this hook is to initialize host data structures related
|
|
|
|
+ // to the ShadowRealm, e.g., for module loading.
|
|
//
|
|
//
|
|
// The host may use this hook to add properties to the ShadowRealm's global object. Those properties must be configurable.
|
|
// The host may use this hook to add properties to the ShadowRealm's global object. Those properties must be configurable.
|
|
return {};
|
|
return {};
|