mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-16 16:12:53 +00:00
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. |
||
---|---|---|
.. | ||
Number-constants.js | ||
Number.isFinite.js | ||
Number.isInteger.js | ||
Number.isNaN.js | ||
Number.isSafeInteger.js | ||
Number.js | ||
Number.parseFloat.js | ||
Number.parseInt.js | ||
Number.prototype.js | ||
Number.prototype.toExponential.js | ||
Number.prototype.toFixed.js | ||
Number.prototype.toLocaleString.js | ||
Number.prototype.toPrecision.js | ||
Number.prototype.toString.js | ||
Number.prototype.valueOf.js |