mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:47:34 +00:00
LibJS: Follow rules for consuming completion records
This is an editorial change in the Temporal spec.
See: 1c19b96
This commit is contained in:
parent
2bae040bc9
commit
68af8649fb
21 changed files with 78 additions and 78 deletions
|
@ -176,7 +176,7 @@ ThrowCompletionOr<double> to_integer_without_rounding(GlobalObject& global_objec
|
|||
if (number.is_nan() || number.is_positive_zero() || number.is_negative_zero())
|
||||
return 0;
|
||||
|
||||
// 3. If ! IsIntegralNumber(number) is false, throw a RangeError exception.
|
||||
// 3. If IsIntegralNumber(number) is false, throw a RangeError exception.
|
||||
if (!number.is_integral_number())
|
||||
return vm.template throw_completion<RangeError>(global_object, error_type, args...);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue