diff options
author | kpdecker <kpdecker@gmail.com> | 2014-11-26 09:18:33 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-11-26 09:18:33 -0600 |
commit | df421f1e4b43773c61bc7c2c3cd06e0ff9ec4905 (patch) | |
tree | 8323023702dba63dece9a62707849669e376592c /lib/handlebars/compiler/ast.js | |
parent | 61dd721ca2a9055036d0f350970d033ca5227411 (diff) | |
download | handlebars.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.js | 5 |
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; }, |