mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
LibJS: Fix typos in Temporal spec comments
This is an editorial change in the Temporal spec.
See: b0411b4
This commit is contained in:
parent
fb2012dfc7
commit
071b92e920
2 changed files with 2 additions and 2 deletions
|
@ -199,7 +199,7 @@ ThrowCompletionOr<DurationRecord> to_temporal_duration_record(GlobalObject& glob
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 6. If ! IsValidDuration(result.[[Years]], result.[[Months]], result.[[Weeks]] result.[[Days]], result.[[Hours]], result.[[Minutes]], result.[[Seconds]], result.[[Milliseconds]], result.[[Microseconds]], result.[[Nanoseconds]]) is false, then
|
// 6. If ! IsValidDuration(result.[[Years]], result.[[Months]], result.[[Weeks]], result.[[Days]], result.[[Hours]], result.[[Minutes]], result.[[Seconds]], result.[[Milliseconds]], result.[[Microseconds]], result.[[Nanoseconds]]) is false, then
|
||||||
if (!is_valid_duration(result.years, result.months, result.weeks, result.days, result.hours, result.minutes, result.seconds, result.milliseconds, result.microseconds, result.nanoseconds)) {
|
if (!is_valid_duration(result.years, result.months, result.weeks, result.days, result.hours, result.minutes, result.seconds, result.milliseconds, result.microseconds, result.nanoseconds)) {
|
||||||
// a. Throw a RangeError exception.
|
// a. Throw a RangeError exception.
|
||||||
return vm.throw_completion<RangeError>(global_object, ErrorType::TemporalInvalidDuration);
|
return vm.throw_completion<RangeError>(global_object, ErrorType::TemporalInvalidDuration);
|
||||||
|
|
|
@ -455,7 +455,7 @@ ThrowCompletionOr<Object*> to_temporal_time_zone(GlobalObject& global_object, Va
|
||||||
// a. Let name be parseResult.[[Name]].
|
// a. Let name be parseResult.[[Name]].
|
||||||
auto name = parse_result.name.release_value();
|
auto name = parse_result.name.release_value();
|
||||||
|
|
||||||
// b. If ParseText(StringToCodePoints(name, TimeZoneNumericUTCOffset)) is a List of errors, then
|
// b. If ParseText(StringToCodePoints(name), TimeZoneNumericUTCOffset) is a List of errors, then
|
||||||
if (!is_valid_time_zone_numeric_utc_offset_syntax(name)) {
|
if (!is_valid_time_zone_numeric_utc_offset_syntax(name)) {
|
||||||
// i. If IsValidTimeZoneName(name) is false, throw a RangeError exception.
|
// i. If IsValidTimeZoneName(name) is false, throw a RangeError exception.
|
||||||
if (!is_valid_time_zone_name(name))
|
if (!is_valid_time_zone_name(name))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue