mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 19:16:02 +00:00
LibJS: Drop the Temporal prefix from TemporalMissingRequiredProperty
This allows us to use it for other exposed JS APIs that accept options objects.
This commit is contained in:
parent
c3810b827a
commit
5ce468338e
Notes:
sideshowbarker
2024-07-18 03:21:32 +09:00
Author: https://github.com/IdanHo
Commit: 5ce468338e
Pull-request: https://github.com/SerenityOS/serenity/pull/10250
Reviewed-by: https://github.com/linusg ✅
5 changed files with 11 additions and 11 deletions
|
@ -374,7 +374,7 @@ ThrowCompletionOr<UnregulatedTemporalTime> to_temporal_time_record(GlobalObject&
|
|||
// c. If value is undefined, then
|
||||
if (value.is_undefined()) {
|
||||
// i. Throw a TypeError exception.
|
||||
return vm.throw_completion<TypeError>(global_object, ErrorType::TemporalMissingRequiredProperty, property);
|
||||
return vm.throw_completion<TypeError>(global_object, ErrorType::MissingRequiredProperty, property);
|
||||
}
|
||||
|
||||
// d. Set value to ? ToIntegerThrowOnInfinity(value).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue