Fix uglify attempting to rewrite invalid new expressions
This commit is contained in:
committed by
Richard van Velzen
parent
5cb5305cf3
commit
8287ef6781
@@ -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);"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user