1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:27:34 +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:
Idan Horowitz 2021-09-29 00:58:10 +03:00
parent c3810b827a
commit 5ce468338e
5 changed files with 11 additions and 11 deletions

View file

@ -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).