| Index: test/cctest/test-parsing.cc
|
| diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
|
| index 2ec378b25cd855a0f8e08caf2b7481b04e7fc419..3c7822a03209f55c7888e27c05e2cdf1622b8f6c 100644
|
| --- a/test/cctest/test-parsing.cc
|
| +++ b/test/cctest/test-parsing.cc
|
| @@ -7640,6 +7640,31 @@ TEST(AsyncAwaitErrors) {
|
| "var O = { async method() { function await() {} } }",
|
| "async function foo() { function await() {} }",
|
|
|
| + // Henrique Ferreiro's bug (tm)
|
| + "(async function foo() { } foo => 1)",
|
| + "(async function foo() { } () => 1)",
|
| + "(async function foo() { } => 1)",
|
| + "(async function() { } foo => 1)",
|
| + "(async function() { } () => 1)",
|
| + "(async function() { } => 1)",
|
| + "(async.foo => 1)",
|
| + "(async.foo foo => 1)",
|
| + "(async.foo () => 1)",
|
| + "(async().foo => 1)",
|
| + "(async().foo foo => 1)",
|
| + "(async().foo () => 1)",
|
| + "(async['foo'] => 1)",
|
| + "(async['foo'] foo => 1)",
|
| + "(async['foo'] () => 1)",
|
| + "(async()['foo'] => 1)",
|
| + "(async()['foo'] foo => 1)",
|
| + "(async()['foo'] () => 1)",
|
| + "(async`foo` => 1)",
|
| + "(async`foo` foo => 1)",
|
| + "(async`foo` () => 1)",
|
| + "(async`foo`.bar => 1)",
|
| + "(async`foo`.bar foo => 1)",
|
| + "(async`foo`.bar () => 1)",
|
| NULL
|
| };
|
|
|
|
|