aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/evaluate.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js
index b5b74ac0..9f97ba99 100644
--- a/test/compress/evaluate.js
+++ b/test/compress/evaluate.js
@@ -2869,3 +2869,28 @@ issue_4035: {
"true",
]
}
+
+issue_4067: {
+ options = {
+ evaluate: true,
+ reduce_vars: true,
+ unsafe: true,
+ }
+ input: {
+ (function(a) {
+ (function(b) {
+ b[0] += 0;
+ console.log(+a);
+ })(a);
+ })([]);
+ }
+ expect: {
+ (function(a) {
+ (function(b) {
+ b[0] += 0;
+ console.log(+a);
+ })(a);
+ })([]);
+ }
+ expect_stdout: "NaN"
+}