fix corner case in inline & reduce_vars (#5579)

This commit is contained in:
Alex Lam S.L
2022-07-28 16:53:11 +01:00
committed by GitHub
parent db6fd6db3e
commit 513995f57d
4 changed files with 58 additions and 8 deletions

View File

@@ -160,6 +160,11 @@ module.exports = function reduce_test(testcase, minify_options, reduce_options)
return expr instanceof U.AST_Spread ? expr.expression : expr;
}
}
else if (node instanceof U.AST_Await) {
node.start._permute++;
CHANGED = true;
return node.expression;
}
else if (node instanceof U.AST_Binary) {
var permute = ((node.start._permute += step) * steps | 0) % 4;
var expr = [