summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Contrib
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-12-13 20:49:50 +0000
committerLinus Groh <mail@linusgroh.de>2022-12-14 09:59:45 +0000
commitbfb8d835350e5a8c076be64dbb2f5d288f962595 (patch)
treef83217463064de3216b3174c25eddf30d373b584 /Userland/Libraries/LibJS/Contrib
parente0818bf21e08f142516dca4c9aca1e86b6cd67ed (diff)
downloadserenity-bfb8d835350e5a8c076be64dbb2f5d288f962595.zip
LibJS: Convert Realm::create() to NonnullGCPtr
Diffstat (limited to 'Userland/Libraries/LibJS/Contrib')
-rw-r--r--Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp b/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp
index 3691d034b5..671126e0ab 100644
--- a/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp
+++ b/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp
@@ -58,8 +58,7 @@ JS_DEFINE_NATIVE_FUNCTION($262Object::clear_kept_objects)
JS_DEFINE_NATIVE_FUNCTION($262Object::create_realm)
{
- auto* realm = Realm::create(vm);
- VERIFY(realm);
+ auto realm = 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);