aboutsummaryrefslogtreecommitdiff
path: root/lib/parse.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-08-15 13:32:37 +0300
committerMihai Bazon <mihai@bazon.net>2012-08-15 14:50:27 +0300
commitc0ba9e29861ab08ad8a5131705f421e96d634f4b (patch)
tree9e81de966f75e5f8205c23b220f950589688c037 /lib/parse.js
parent861e26a66639ca61eab2af53de45760370c4d534 (diff)
downloadtracifyjs-c0ba9e29861ab08ad8a5131705f421e96d634f4b.tar.gz
tracifyjs-c0ba9e29861ab08ad8a5131705f421e96d634f4b.zip
WIP
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();
}