aboutsummaryrefslogtreecommitdiff
path: root/test/compress/reduce_vars.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/reduce_vars.js')
-rw-r--r--test/compress/reduce_vars.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js
index c911efe0..153ac5d4 100644
--- a/test/compress/reduce_vars.js
+++ b/test/compress/reduce_vars.js
@@ -120,7 +120,7 @@ modified: {
expect: {
function f0() {
var b = 2;
- b++;
+ +b;
console.log(2);
console.log(4);
}
@@ -5590,7 +5590,7 @@ lvalues_def_1: {
}
expect: {
var b = 1;
- var a = b++, b = NaN;
+ var a = +b, b = NaN;
console.log(a, b);
}
expect_stdout: "1 NaN"