1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +00:00

LibJS: Convert Realm::create() to NonnullGCPtr

This commit is contained in:
Linus Groh 2022-12-13 20:49:50 +00:00
parent e0818bf21e
commit bfb8d83535
4 changed files with 6 additions and 7 deletions

View file

@ -42,7 +42,7 @@ ThrowCompletionOr<Object*> ShadowRealmConstructor::construct(FunctionObject& new
auto& vm = this->vm();
// 3. Let realmRec be CreateRealm().
auto* realm = Realm::create(vm);
auto realm = Realm::create(vm);
// 5. Let context be a new execution context.
auto context = ExecutionContext { vm.heap() };