Fix uglify attempting to rewrite invalid new expressions

This commit is contained in:
Anthony Van de Gejuchte
2016-06-07 01:33:13 +02:00
committed by Richard van Velzen
parent 5cb5305cf3
commit 8287ef6781
3 changed files with 50 additions and 2 deletions

View File

@@ -10,3 +10,11 @@ new_statement: {
}
expect_exact: "new x(1);new x(1)(2);new x(1)(2)(3);new new x(1);new new x(1)(2);new new x(1)(2);(new new x(1))(2);"
}
new_with_rewritten_true_value: {
options = { booleans: true }
input: {
new true;
}
expect_exact: "new(!0);"
}