1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:28:12 +00:00

LibJS: Replace "is not zero" language in Temporal comments

This commit ticks away one of the boxes in #15525
Temporal commit: tc39/proposal-temporal@9cd448a
This commit is contained in:
BodilessSleeper 2023-01-06 02:35:12 +01:00 committed by Linus Groh
parent 3d87445c82
commit 18122c0368
2 changed files with 10 additions and 10 deletions

View file

@ -309,7 +309,7 @@ ThrowCompletionOr<u64> to_temporal_rounding_increment(VM& vm, Object const& norm
// 7. Set increment to floor((increment)).
auto floored_increment = static_cast<u64>(increment);
// 8. If dividend is not undefined and dividend modulo increment is not zero, then
// 8. If dividend is not undefined and dividend modulo increment ≠ 0, then
if (dividend.has_value() && static_cast<u64>(*dividend) % floored_increment != 0)
// a. Throw a RangeError exception.
return vm.throw_completion<RangeError>(ErrorType::OptionIsNotValidValue, increment, "roundingIncrement");