fix: disallow computed async/get/set keyword (#13531)

This commit is contained in:
Huáng Jùnliàng
2021-07-06 18:25:57 -04:00
committed by GitHub
parent bc1b9537b0
commit bfd2f8f4b1
9 changed files with 15 additions and 7 deletions

View File

@@ -0,0 +1,3 @@
class A {
[async] a() {}
}

View File

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

View File

@@ -0,0 +1,3 @@
class A {
[get] a() {}
}

View File

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