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:
parent
364dd42fc8
commit
ebf57df431
Notes:
sideshowbarker
2024-07-18 03:07:22 +09:00
Author: https://github.com/linusg
Commit: ebf57df431
Pull-request: https://github.com/SerenityOS/serenity/pull/10327
Reviewed-by: https://github.com/IdanHo ✅
5 changed files with 55 additions and 51 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue