Parse class static block (#12079)
Co-authored-by: Brian Ng <bng412@gmail.com>
This commit is contained in:
committed by
Nicolò Ribaudo
parent
6830c90ac9
commit
3ccca88178
@@ -2390,7 +2390,7 @@ export default class ExpressionParser extends LValParser {
|
||||
!this.scope.inNonArrowFunction &&
|
||||
word === "arguments"
|
||||
) {
|
||||
this.raise(startLoc, Errors.ArgumentsDisallowedInInitializer);
|
||||
this.raise(startLoc, Errors.ArgumentsInClass);
|
||||
return;
|
||||
}
|
||||
if (checkKeywords && isKeyword(word)) {
|
||||
|
||||
Reference in New Issue
Block a user