Remove unused state variable in_parameters, and also remove unreachable code (try_an_object always returned an object!)

This commit is contained in:
Fábio Santos
2015-09-05 23:01:25 +01:00
parent af22b9c657
commit 2fac2bbfe4
2 changed files with 58 additions and 87 deletions

View File

@@ -122,3 +122,14 @@ number_literals: {
9;
}
}
// Fabio: My patches accidentally caused a crash whenever
// there's an extraneous set of parens around an object.
regression_cannot_destructure: {
input: {
var x = ({ x : 3 });
x(({ x: 3 }));
}
expect_exact: "var x={x:3};x({x:3});";
}