fix: disallow computed async/get/set keyword (#13531)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
class A {
|
||||
[async] a() {}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (2:10)"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class A {
|
||||
[get] a() {}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (2:8)"
|
||||
}
|
||||
Reference in New Issue
Block a user