Fix bad parsing of new new x()() constructs

Fixes #739
This commit is contained in:
Richard van Velzen
2015-08-06 21:27:46 +02:00
committed by Mihai Bazon
parent e3bd223dac
commit fcde6109b0
2 changed files with 15 additions and 3 deletions

12
test/compress/new.js Normal file
View File

@@ -0,0 +1,12 @@
new_statement: {
input: {
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);
}
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);"
}