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:
parent
3d87445c82
commit
18122c0368
2 changed files with 10 additions and 10 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue