diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/issue-2871.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/compress/issue-2871.js b/test/compress/issue-2871.js new file mode 100644 index 00000000..43c8352b --- /dev/null +++ b/test/compress/issue-2871.js @@ -0,0 +1,37 @@ +comparison_with_undefined: { + options = { + comparisons: true, + } + input: { + a == undefined; + a != undefined; + a === undefined; + a !== undefined; + + undefined == a; + undefined != a; + undefined === a; + undefined !== a; + + void 0 == a; + void 0 != a; + void 0 === a; + void 0 !== a; + } + expect: { + null == a; + null != a; + void 0 === a; + void 0 !== a; + + null == a; + null != a; + void 0 === a; + void 0 !== a; + + null == a; + null != a; + void 0 === a; + void 0 !== a; + } +} |