LibJS: Align spec comments for ShadowRealm for HostInitializeShadowRealm

The proposed changes have been merged into the proposal with:

https://github.com/tc39/proposal-shadowrealm/commit/f20d02
This commit is contained in:
Shannon Booth 2024-11-17 05:55:20 +13:00 committed by Andreas Kling
commit fd0c63b338
Notes: github-actions[bot] 2024-11-17 21:16:13 +00:00
2 changed files with 7 additions and 8 deletions

View file

@ -40,7 +40,6 @@ ThrowCompletionOr<Value> ShadowRealmConstructor::call()
}
// 3.2.1 ShadowRealm ( ), https://tc39.es/proposal-shadowrealm/#sec-shadowrealm
// https://github.com/tc39/proposal-shadowrealm/pull/410
ThrowCompletionOr<GC::Ref<Object>> ShadowRealmConstructor::construct(FunctionObject& new_target)
{
auto& vm = this->vm();
@ -62,7 +61,7 @@ ThrowCompletionOr<GC::Ref<Object>> ShadowRealmConstructor::construct(FunctionObj
// 8. Set O.[[ShadowRealm]] to realmRec.
object->set_shadow_realm(realm_record);
// 9. Perform ? HostInitializeShadowRealm(realmRec).
// 9. Perform ? HostInitializeShadowRealm(realmRec, innerContext, O).
TRY(vm.host_initialize_shadow_realm(realm_record, move(inner_context), object));
// 10. Return O.