mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:08:13 +00: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
5 changed files with 55 additions and 51 deletions
|
@ -46,7 +46,7 @@ ThrowCompletionOr<void> Error::install_error_cause(Value options)
|
|||
auto cause = TRY(options.as_object().get(vm.names.cause));
|
||||
|
||||
// b. Perform ! CreateNonEnumerableDataPropertyOrThrow(O, "cause", cause).
|
||||
create_non_enumerable_data_property_or_throw(vm.names.cause, cause);
|
||||
MUST(create_non_enumerable_data_property_or_throw(vm.names.cause, cause));
|
||||
}
|
||||
|
||||
// Return NormalCompletion(undefined).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue