From 41bfff1abe995a4a590ea23fa741cf46381b0a94 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 5 Apr 2020 00:11:47 -0700 Subject: LibJS: Correctness fixes for bitwise_or, address FIXME's in test. --- Libraries/LibJS/Tests/binary-bitwise-operators-basic.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Libraries/LibJS/Tests/binary-bitwise-operators-basic.js') diff --git a/Libraries/LibJS/Tests/binary-bitwise-operators-basic.js b/Libraries/LibJS/Tests/binary-bitwise-operators-basic.js index e941e0c8f3..81a772d9e6 100644 --- a/Libraries/LibJS/Tests/binary-bitwise-operators-basic.js +++ b/Libraries/LibJS/Tests/binary-bitwise-operators-basic.js @@ -48,14 +48,14 @@ try { assert(("42" | 6) === 46); assert((x | y) === 7); assert((x | [[[[12]]]]) === 15); - // FIXME: These should all return 0 - // assert((undefined | y) === 7); - // assert(("a" | "b") === 0); - // assert((null | null) === 0); - // assert((undefined | undefined) === 0); - // assert((NaN | NaN) === 0); - // assert((Infinity | Infinity) === 0); - // assert((-Infinity | Infinity) === 0); + assert((undefined | y) === 7); + assert(("a" | "b") === 0); + assert((null | null) === 0); + assert((undefined | undefined) === 0); + assert((NaN | NaN) === 0); + assert((NaN | 6) === 6); + assert((Infinity | Infinity) === 0); + assert((-Infinity | Infinity) === 0); console.log("PASS"); } catch (e) { -- cgit v1.2.3