summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/AggregateErrorConstructor.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-12-14 18:34:32 +0000
committerTim Flynn <trflynn89@pm.me>2022-12-15 06:56:37 -0500
commit1c24b82dd769c40243707c8c8ee5febaae2b2a58 (patch)
tree9d745045fe6abd03d76a71e7887bd3e870cde582 /Userland/Libraries/LibJS/Runtime/AggregateErrorConstructor.cpp
parent22089436edec780e03960ecaa74bfc4930126534 (diff)
downloadserenity-1c24b82dd769c40243707c8c8ee5febaae2b2a58.zip
LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/AggregateErrorConstructor.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/AggregateErrorConstructor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AggregateErrorConstructor.cpp b/Userland/Libraries/LibJS/Runtime/AggregateErrorConstructor.cpp
index 2ba922ba4b..431288c3e4 100644
--- a/Userland/Libraries/LibJS/Runtime/AggregateErrorConstructor.cpp
+++ b/Userland/Libraries/LibJS/Runtime/AggregateErrorConstructor.cpp
@@ -48,7 +48,7 @@ ThrowCompletionOr<Object*> AggregateErrorConstructor::construct(FunctionObject&
auto options = vm.argument(2);
// 2. Let O be ? OrdinaryCreateFromConstructor(newTarget, "%AggregateError.prototype%", ยซ [[ErrorData]] ยป).
- auto* aggregate_error = TRY(ordinary_create_from_constructor<AggregateError>(vm, new_target, &Intrinsics::aggregate_error_prototype));
+ auto aggregate_error = TRY(ordinary_create_from_constructor<AggregateError>(vm, new_target, &Intrinsics::aggregate_error_prototype));
// 3. If message is not undefined, then
if (!message.is_undefined()) {
@@ -69,7 +69,7 @@ ThrowCompletionOr<Object*> AggregateErrorConstructor::construct(FunctionObject&
MUST(aggregate_error->define_property_or_throw(vm.names.errors, { .value = Array::create_from(realm, errors_list), .writable = true, .enumerable = false, .configurable = true }));
// 7. Return O.
- return aggregate_error;
+ return aggregate_error.ptr();
}
}