disallow invalid async function forms inside object literals - fixes #2629

This commit is contained in:
Sebastian McKenzie
2015-11-02 08:00:01 +00:00
parent 7fabc4c83d
commit c2973d0c7a
5 changed files with 14 additions and 6 deletions

View File

@@ -0,0 +1 @@
({ async a });

View File

@@ -0,0 +1,3 @@
{
"throws": "Unexpected token (1:11)"
}

View File

@@ -0,0 +1 @@
({ async a: function () {} });

View File

@@ -0,0 +1,3 @@
{
"throws": "Unexpected token (1:10)"
}