1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

LibJS: Convert create_non_enum_data_p_or_throw() to ThrowCompletionOr

The actual name is a bit longer, but you know what I mean :^)
This commit is contained in:
Linus Groh 2021-10-03 01:22:32 +01:00
parent 364dd42fc8
commit ebf57df431
Notes: sideshowbarker 2024-07-18 03:07:22 +09:00
5 changed files with 55 additions and 51 deletions

View file

@ -48,7 +48,7 @@ Value AggregateErrorConstructor::construct(FunctionObject& new_target)
auto message = vm.argument(1).to_string(global_object);
if (vm.exception())
return {};
aggregate_error->create_non_enumerable_data_property_or_throw(vm.names.message, js_string(vm, message));
MUST(aggregate_error->create_non_enumerable_data_property_or_throw(vm.names.message, js_string(vm, message)));
}
TRY_OR_DISCARD(aggregate_error->install_error_cause(vm.argument(2)));