summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/ast.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-11-26 09:18:33 -0600
committerkpdecker <kpdecker@gmail.com>2014-11-26 09:18:33 -0600
commitdf421f1e4b43773c61bc7c2c3cd06e0ff9ec4905 (patch)
tree8323023702dba63dece9a62707849669e376592c /lib/handlebars/compiler/ast.js
parent61dd721ca2a9055036d0f350970d033ca5227411 (diff)
downloadhandlebars.js-df421f1e4b43773c61bc7c2c3cd06e0ff9ec4905.zip
handlebars.js-df421f1e4b43773c61bc7c2c3cd06e0ff9ec4905.tar.gz
handlebars.js-df421f1e4b43773c61bc7c2c3cd06e0ff9ec4905.tar.bz2
Update ProgramNode to better match SpiderMonkey
Diffstat (limited to 'lib/handlebars/compiler/ast.js')
-rw-r--r--lib/handlebars/compiler/ast.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js
index 363c252..a0ed42e 100644
--- a/lib/handlebars/compiler/ast.js
+++ b/lib/handlebars/compiler/ast.js
@@ -3,8 +3,9 @@ import Exception from "../exception";
var AST = {
ProgramNode: function(statements, blockParams, strip, locInfo) {
this.loc = locInfo;
- this.type = "program";
- this.statements = statements;
+ this.type = 'Program';
+ this.body = statements;
+
this.blockParams = blockParams;
this.strip = strip;
},