mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
LibJS: Add error message for invalid time zone in Temporal.TimeZone()
This commit is contained in:
parent
89641d90db
commit
d9cff591b6
2 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,7 @@ Value TimeZoneConstructor::construct(FunctionObject& new_target)
|
|||
// a. If ! IsValidTimeZoneName(identifier) is false, then
|
||||
if (!is_valid_time_zone_name(identifier)) {
|
||||
// i. Throw a RangeError exception.
|
||||
vm.throw_exception<RangeError>(global_object);
|
||||
vm.throw_exception<RangeError>(global_object, ErrorType::TemporalInvalidTimeZoneName);
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue