| Index: test/cctest/test-parsing.cc
|
| diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
|
| index 2746388bbdde4e8fb671da43cf054cd8e75676bf..ccb5e8c992850635b3d404bd22898d7cb20451cb 100644
|
| --- a/test/cctest/test-parsing.cc
|
| +++ b/test/cctest/test-parsing.cc
|
| @@ -2557,13 +2557,22 @@ TEST(InvalidLeftHandSide) {
|
| "this[foo]",
|
| "new foo()[bar]",
|
| "new foo().bar",
|
| + "foo()",
|
| + "foo(bar)",
|
| + "foo[bar]()",
|
| + "foo.bar()",
|
| + "this()",
|
| + "this.foo()",
|
| + "this[foo].bar()",
|
| + "this.foo[foo].bar(this)(bar)[foo]()",
|
| NULL
|
| };
|
|
|
| // Bad left hand sides for assigment or prefix / postfix operations.
|
| const char* bad_statement_data_common[] = {
|
| "2",
|
| - "foo()",
|
| + "new foo",
|
| + "new foo()",
|
| "null",
|
| "if", // Unexpected token
|
| "{x: 1}", // Unexpected token
|
|
|