From 4bba3f843fa5b02e3623ff62684857721f0d83bf Mon Sep 17 00:00:00 2001 From: kzc Date: Wed, 16 Aug 2017 10:04:28 -0400 Subject: [PATCH] rework test --- test/compress/issue-203.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/compress/issue-203.js b/test/compress/issue-203.js index b85e16e1..896982b5 100644 --- a/test/compress/issue-203.js +++ b/test/compress/issue-203.js @@ -36,9 +36,10 @@ compress_new_function_with_destruct: { compress_new_function_with_destruct_arrows: { options = { arrows: true, + unsafe_arrows: true, unsafe: true, unsafe_Func: true, - ecma: 6 + ecma: 6, } beautify = { ecma: 6 @@ -49,8 +50,8 @@ compress_new_function_with_destruct_arrows: { new Function("[[aa]], [{bb}]", 'return aa;'); } expect: { - Function("n,[r]", "return n"); - Function("n,{bb:b}", "return n"); - Function("[[n]],[{bb:b}]", "return n"); + Function("n,[a]", "return n"); + Function("b,{bb:n}", "return b"); + Function("[[b]],[{bb:n}]", "return b"); } }