summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/base.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/base.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/base.js')
-rw-r--r--lib/handlebars/compiler/base.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/base.js b/lib/handlebars/compiler/base.js
index df6b928..786c37e 100644
--- a/lib/handlebars/compiler/base.js
+++ b/lib/handlebars/compiler/base.js
@@ -10,7 +10,7 @@ extend(yy, Helpers, AST);
export function parse(input, options) {
// Just return if an already-compile AST was passed in.
- if (input.constructor === AST.ProgramNode) { return input; }
+ if (input.type === 'Program') { return input; }
parser.yy = yy;