aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-03-28 17:08:16 +0800
committerGitHub <noreply@github.com>2017-03-28 17:08:16 +0800
commitf71f4905b004a559f0612e0e0928204f912a66bc (patch)
tree9a97f9bb73ed3aee31bc709db386dc8a97de227e /test
parentfb177a6312ccd90918c9f8f0f867c2fddd85a2c8 (diff)
downloadtracifyjs-f71f4905b004a559f0612e0e0928204f912a66bc.tar.gz
tracifyjs-f71f4905b004a559f0612e0e0928204f912a66bc.zip
fix `is_number()` on `+=` (#1714)
fixes #1710
Diffstat (limited to 'test')
-rw-r--r--test/compress/numbers.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/compress/numbers.js b/test/compress/numbers.js
index 0b40bb9c..ea439ecc 100644
--- a/test/compress/numbers.js
+++ b/test/compress/numbers.js
@@ -153,3 +153,18 @@ evaluate_4: {
);
}
}
+
+issue_1710: {
+ options = {
+ evaluate: true,
+ }
+ input: {
+ var x = {};
+ console.log((x += 1) + -x);
+ }
+ expect: {
+ var x = {};
+ console.log((x += 1) + -x);
+ }
+ expect_stdout: true
+}