aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-281.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/issue-281.js')
-rw-r--r--test/compress/issue-281.js20
1 files changed, 14 insertions, 6 deletions
diff --git a/test/compress/issue-281.js b/test/compress/issue-281.js
index 1c339bcd..797f7d9b 100644
--- a/test/compress/issue-281.js
+++ b/test/compress/issue-281.js
@@ -463,15 +463,19 @@ drop_fargs: {
var a = 1;
!function(a_1) {
a++;
- }(a++ + (a && a.var));
+ }(a++ + (a && console.log(a)));
console.log(a);
}
expect: {
var a = 1;
- ++a && a.var, a++;
+ ++a && console.log(a),
+ a++;
console.log(a);
}
- expect_stdout: "3"
+ expect_stdout: [
+ "2",
+ "3",
+ ]
}
keep_fargs: {
@@ -486,13 +490,17 @@ keep_fargs: {
var a = 1;
!function(a_1) {
a++;
- }(a++ + (a && a.var));
+ }(a++ + (a && console.log(a)));
console.log(a);
}
expect: {
var a = 1;
- ++a && a.var, a++;
+ ++a && console.log(a),
+ a++;
console.log(a);
}
- expect_stdout: "3"
+ expect_stdout: [
+ "2",
+ "3",
+ ]
}