summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Contrib
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2023-02-27 22:42:40 +0000
committerLinus Groh <mail@linusgroh.de>2023-02-27 23:57:08 +0000
commit53852452b2a31cb0b26ff2af0c232e3e85465e59 (patch)
tree68178ba2d263576f06a872108722e4ea0c835f22 /Userland/Libraries/LibJS/Contrib
parentaf118f2a679a7f21ca9389d1e2ae79f33fbf896a (diff)
downloadserenity-53852452b2a31cb0b26ff2af0c232e3e85465e59.zip
LibJS: Propagate errors from Intrinsics initialization
Diffstat (limited to 'Userland/Libraries/LibJS/Contrib')
-rw-r--r--Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp b/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp
index 26dd2266f3..148fa807fb 100644
--- a/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp
+++ b/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp
@@ -60,7 +60,7 @@ JS_DEFINE_NATIVE_FUNCTION($262Object::clear_kept_objects)
JS_DEFINE_NATIVE_FUNCTION($262Object::create_realm)
{
- auto realm = Realm::create(vm);
+ auto realm = MUST_OR_THROW_OOM(Realm::create(vm));
auto realm_global_object = vm.heap().allocate_without_realm<GlobalObject>(*realm);
VERIFY(realm_global_object);
realm->set_global_object(realm_global_object, nullptr);