mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibJS: Convert define_property_or_throw() to ThrowCompletionOr
This commit is contained in:
@@ -57,7 +57,7 @@ Value AggregateErrorConstructor::construct(FunctionObject& new_target)
|
||||
if (vm.exception())
|
||||
return {};
|
||||
|
||||
aggregate_error->define_property_or_throw(vm.names.errors, { .value = Array::create_from(global_object, errors_list), .writable = true, .enumerable = false, .configurable = true });
|
||||
MUST(aggregate_error->define_property_or_throw(vm.names.errors, { .value = Array::create_from(global_object, errors_list), .writable = true, .enumerable = false, .configurable = true }));
|
||||
|
||||
return aggregate_error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user