ladybird/Userland/Libraries/LibJS/Tests/builtins/Number
Daniel Bertalan 0cd85ab0fc AK+LibJS: Make Number.MIN_VALUE a denormal
ECMA-262 implies that `MIN_VALUE` should be a denormalized value if
denormal arithmetic is supported. This is the case on x86-64 and AArch64
using standard GCC/Clang compilation settings.

test262 checks whether `Number.MIN_VALUE / 2.0` is equal to 0, which
only holds if `MIN_VALUE` is the smallest denormalized value.

This commit renames the existing `NumericLimits<FloatingPoint>::min()`
to `min_normal()` and adds a `min_denormal()` method to force users to
explicitly think about which one is appropriate for their use case. We
shouldn't follow the STL's confusingly designed interface in this
regard.
2023-07-02 21:19:09 +01:00
..
Number-constants.js AK+LibJS: Make Number.MIN_VALUE a denormal 2023-07-02 21:19:09 +01:00
Number.isFinite.js
Number.isInteger.js LibJS/Tests: Enable Number.isInteger() test that now passes 2022-01-24 20:39:01 +00:00
Number.isNaN.js
Number.isSafeInteger.js
Number.js LibJS: Handle non-decimal integer literals in Value::to_number 2022-08-30 01:00:48 +01:00
Number.parseFloat.js
Number.parseInt.js LibJS: Add Number.parseInt 2021-06-18 10:29:33 +01:00
Number.prototype.js
Number.prototype.toExponential.js LibJS: Use more accurate number-to-string method in Number toExponential 2022-11-04 21:12:10 +00:00
Number.prototype.toFixed.js LibJS: Fix rounding issues in Number.toFixed 2022-03-02 08:34:04 +01:00
Number.prototype.toLocaleString.js LibJS: Implement ECMA-402 Number.prototype.toLocaleString 2021-11-17 09:01:32 +00:00
Number.prototype.toPrecision.js LibJS: Use more accurate number-to-string method in Number toPrecision 2022-11-04 21:12:10 +00:00
Number.prototype.toString.js LibJS: Make int_part a double in StringPrototype::to_string 2023-03-01 10:53:31 +01:00
Number.prototype.valueOf.js LibJS: Change wording of ErrorType::NotA to be independent of context 2021-09-12 00:16:39 +02:00