Files
ladybird/Libraries/LibJS/Runtime
Linus Groh 9fca86109b LibJS: Make bitwise NOT work correctly with NaN and Infinity
This was missing a "toInt32()" which returns 0 for NaN and Infinity.
From the spec:

    6.1.6.1.2 Number::bitwiseNOT ( x )

    The abstract operation Number::bitwiseNOT takes argument x (a Number).
    It performs the following steps when called:

        Let oldValue be ! ToInt32(x).
        Return the result of applying bitwise complement to oldValue.
        The mathematical value of the result is exactly representable as
        a 32-bit two's complement bit string.

Fixes #4868.
2021-01-09 19:09:02 +01:00
..
2020-12-02 23:49:00 +01:00
2020-12-02 23:49:00 +01:00
2020-12-01 09:54:37 +01:00
2020-12-05 23:52:17 +01:00