diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ShadowRealmConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ShadowRealmConstructor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ShadowRealmConstructor.cpp b/Userland/Libraries/LibJS/Runtime/ShadowRealmConstructor.cpp index 9d9d45ae05..e4a9f65319 100644 --- a/Userland/Libraries/LibJS/Runtime/ShadowRealmConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/ShadowRealmConstructor.cpp @@ -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; |