aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/issue-105.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/compress/issue-105.js b/test/compress/issue-105.js
index 0c37eb82..ca17adbf 100644
--- a/test/compress/issue-105.js
+++ b/test/compress/issue-105.js
@@ -3,7 +3,7 @@ typeof_eq_undefined: {
comparisons: true
};
input: { a = typeof b.c != "undefined" }
- expect: { a = typeof b.c != "undefined" }
+ expect: { a = "undefined" != typeof b.c }
}
typeof_eq_undefined_unsafe: {
@@ -12,5 +12,14 @@ typeof_eq_undefined_unsafe: {
unsafe: true
};
input: { a = typeof b.c != "undefined" }
- expect: { a = b.c !== void 0 }
+ expect: { a = void 0 !== b.c }
+}
+
+typeof_eq_undefined_unsafe2: {
+ options = {
+ comparisons: true,
+ unsafe: true
+ };
+ input: { a = "undefined" != typeof b.c }
+ expect: { a = void 0 !== b.c }
}