diff options
author | Luke Wilde <lukew@serenityos.org> | 2023-02-27 22:42:40 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-27 23:57:08 +0000 |
commit | 53852452b2a31cb0b26ff2af0c232e3e85465e59 (patch) | |
tree | 68178ba2d263576f06a872108722e4ea0c835f22 /Userland/Libraries/LibJS/Contrib | |
parent | af118f2a679a7f21ca9389d1e2ae79f33fbf896a (diff) | |
download | serenity-53852452b2a31cb0b26ff2af0c232e3e85465e59.zip |
LibJS: Propagate errors from Intrinsics initialization
Diffstat (limited to 'Userland/Libraries/LibJS/Contrib')
-rw-r--r-- | Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp | 2 |
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); |