mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
LibJS: Convert define_property_or_throw() to ThrowCompletionOr
This commit is contained in:
parent
ebf57df431
commit
fe86b04b42
12 changed files with 31 additions and 58 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue