From 855964a87a14308ae97eea35171982fb33bd58ca Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 20 Apr 2019 19:42:41 +0800 Subject: enhance `unsafe` `evaluate` (#3370) --- test/compress/reduce_vars.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/compress/reduce_vars.js') 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 -- cgit v1.2.3