disallow async constructors -- fixes #1454

This commit is contained in:
Christopher Monsanto
2015-05-06 02:40:48 -04:00
parent a241300ff1
commit 6a82eb5a5c
3 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1 @@
class X { async constructor() {} }

View File

@@ -0,0 +1,4 @@
{
"throws": "Illegal kind for constructor method",
"optional": ["es7.asyncFunctions"]
}