summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/binary-bitwise-operators-basic.js
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-04-05 00:11:47 -0700
committerAndreas Kling <kling@serenityos.org>2020-04-05 10:37:02 +0200
commit41bfff1abe995a4a590ea23fa741cf46381b0a94 (patch)
treec6c00996597ea34bff67cd49e03ab11347f60920 /Libraries/LibJS/Tests/binary-bitwise-operators-basic.js
parent3e8cf79efa637bcacbff2615108eceb77d915892 (diff)
downloadserenity-41bfff1abe995a4a590ea23fa741cf46381b0a94.zip
LibJS: Correctness fixes for bitwise_or, address FIXME's in test.
Diffstat (limited to 'Libraries/LibJS/Tests/binary-bitwise-operators-basic.js')
-rw-r--r--Libraries/LibJS/Tests/binary-bitwise-operators-basic.js16
1 files changed, 8 insertions, 8 deletions
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) {