aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-07-06 09:04:11 +0100
committerGitHub <noreply@github.com>2021-07-06 16:04:11 +0800
commit0668fad5e9000fc8d4857f033c3e90b1cedb4563 (patch)
treec54ae9e72ee956c68234dbc4f22e0ad5ed60a8e9 /lib/ast.js
parentd0e3f6955d956a4977d701e9027eb54d15b6f77c (diff)
downloadtracifyjs-0668fad5e9000fc8d4857f033c3e90b1cedb4563.tar.gz
tracifyjs-0668fad5e9000fc8d4857f033c3e90b1cedb4563.zip
fix corner case with `class` (#5054)
fixes #5053
Diffstat (limited to 'lib/ast.js')
-rw-r--r--lib/ast.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ast.js b/lib/ast.js
index 28e437f7..6057c9b5 100644
--- a/lib/ast.js
+++ b/lib/ast.js
@@ -1759,11 +1759,11 @@ var AST_SymbolLambda = DEFNODE("SymbolLambda", null, {
var AST_SymbolDefClass = DEFNODE("SymbolDefClass", null, {
$documentation: "Symbol defining a class",
-}, AST_SymbolLet);
+}, AST_SymbolConst);
var AST_SymbolClass = DEFNODE("SymbolClass", null, {
$documentation: "Symbol naming a class expression",
-}, AST_SymbolLet);
+}, AST_SymbolConst);
var AST_SymbolCatch = DEFNODE("SymbolCatch", null, {
$documentation: "Symbol naming the exception in catch",