diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-04-20 19:42:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-20 19:42:41 +0800 |
commit | 855964a87a14308ae97eea35171982fb33bd58ca (patch) | |
tree | 37456bfe1cdaff5f3475c93f3eb2f7c7eb2d0afc /test/compress/reduce_vars.js | |
parent | a438e2fca9a9bf014796768d06aba908d1348e16 (diff) | |
download | tracifyjs-855964a87a14308ae97eea35171982fb33bd58ca.tar.gz tracifyjs-855964a87a14308ae97eea35171982fb33bd58ca.zip |
enhance `unsafe` `evaluate` (#3370)
Diffstat (limited to 'test/compress/reduce_vars.js')
-rw-r--r-- | test/compress/reduce_vars.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js index fb5038b5..169ae5a5 100644 --- a/test/compress/reduce_vars.js +++ b/test/compress/reduce_vars.js @@ -281,8 +281,8 @@ unsafe_evaluate_escaped: { console.log(function(){ var o={p:3},a=[o]; console.log(a[0].p++); return o.p; }()); } expect: { - console.log(function(){ var o={p:1}; console.log(o, o.p); return o.p; }()); - console.log(function(){ var o={p:2}; console.log(o.p, o); return o.p; }()); + console.log(function(){ var o={p:1}; console.log(o, 1); return o.p; }()); + console.log(function(){ var o={p:2}; console.log(2, o); return o.p; }()); console.log(function(){ var o={p:3},a=[o]; console.log(a[0].p++); return o.p; }()); } expect_stdout: true |