aboutsummaryrefslogtreecommitdiff
path: root/lib/parse.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parse.js')
-rw-r--r--lib/parse.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parse.js b/lib/parse.js
index 9dcfa635..2cd160fa 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -739,13 +739,13 @@ function parse($TEXT, exigent_mode) {
case "punc":
switch (S.token.value) {
case "{":
- return new AST_Statement({ body: block_() });
+ return new AST_BlockStatement({ body: block_() });
case "[":
case "(":
return simple_statement();
case ";":
next();
- return new AST_Statement();
+ return new AST_EmptyStatement();
default:
unexpected();
}