mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
LibJS: Add missing error propagation to global object initializations
This commit is contained in:
parent
fb7aaeff3e
commit
af118f2a67
3 changed files with 3 additions and 3 deletions
|
@ -70,7 +70,7 @@ ThrowCompletionOr<NonnullGCPtr<Object>> ShadowRealmConstructor::construct(Functi
|
|||
auto& global_object = set_default_global_bindings(object->shadow_realm());
|
||||
|
||||
// FIXME: 12. Perform ? HostInitializeShadowRealm(O.[[ShadowRealm]]).
|
||||
global_object.initialize(object->shadow_realm());
|
||||
MUST_OR_THROW_OOM(global_object.initialize(object->shadow_realm()));
|
||||
|
||||
// 13. Return O.
|
||||
return object;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue