avoid reducing setter argument (#3737)

This commit is contained in:
Alex Lam S.L
2020-03-01 05:04:21 +00:00
committed by GitHub
parent c8d60d6983
commit 3485472866
4 changed files with 41 additions and 1 deletions

View File

@@ -75,8 +75,8 @@ module.exports = function reduce_test(testcase, minify_options, reduce_options)
if (node instanceof U.AST_LabelRef) return;
if (!in_list && node instanceof U.AST_SymbolDeclaration) return;
if (node instanceof U.AST_Toplevel) return;
var parent = tt.parent();
if (node instanceof U.AST_SymbolFunarg && parent instanceof U.AST_Accessor) return;
// ensure that the _permute prop is a number.
// can not use `node.start._permute |= 0;` as it will erase fractional part.