mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
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:
parent
e8c228fb93
commit
fd0c63b338
Notes:
github-actions[bot]
2024-11-17 21:16:13 +00:00
Author: https://github.com/shannonbooth
Commit: fd0c63b338
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2383
2 changed files with 7 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue