1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:37:35 +00:00

LibJS: Propagate errors from Intrinsics initialization

This commit is contained in:
Luke Wilde 2023-02-27 22:42:40 +00:00 committed by Linus Groh
parent af118f2a67
commit 53852452b2
6 changed files with 15 additions and 13 deletions

View file

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