diff options
author | kpdecker <kpdecker@gmail.com> | 2014-11-27 08:37:48 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-11-27 08:37:48 -0600 |
commit | 1124908d2a0d36493912eb2ce062545b1b5e5445 (patch) | |
tree | f6f8a5f5f0a96a6aa4152aeb576775021c390390 /lib/handlebars/compiler/helpers.js | |
parent | e1cba432a68fe208782f8f943ebd57d7641d705a (diff) | |
download | handlebars.js-1124908d2a0d36493912eb2ce062545b1b5e5445.zip handlebars.js-1124908d2a0d36493912eb2ce062545b1b5e5445.tar.gz handlebars.js-1124908d2a0d36493912eb2ce062545b1b5e5445.tar.bz2 |
Update subexpression and hash AST constructs
Diffstat (limited to 'lib/handlebars/compiler/helpers.js')
-rw-r--r-- | lib/handlebars/compiler/helpers.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/handlebars/compiler/helpers.js b/lib/handlebars/compiler/helpers.js index 023566b..f75c10b 100644 --- a/lib/handlebars/compiler/helpers.js +++ b/lib/handlebars/compiler/helpers.js @@ -26,10 +26,10 @@ export function stripComment(comment) { export function prepareRawBlock(openRawBlock, content, close, locInfo) { /*jshint -W040 */ - if (openRawBlock.sexpr.id.original !== close) { + if (openRawBlock.sexpr.path.original !== close) { var errorNode = {loc: openRawBlock.sexpr.loc}; - throw new Exception(openRawBlock.sexpr.id.original + " doesn't match " + close, errorNode); + throw new Exception(openRawBlock.sexpr.path.original + " doesn't match " + close, errorNode); } var program = new this.ProgramNode([content], null, {}, locInfo); @@ -40,10 +40,10 @@ export function prepareRawBlock(openRawBlock, content, close, locInfo) { export function prepareBlock(openBlock, program, inverseAndProgram, close, inverted, locInfo) { /*jshint -W040 */ // When we are chaining inverse calls, we will not have a close path - if (close && close.path && openBlock.sexpr.id.original !== close.path.original) { + if (close && close.path && openBlock.sexpr.path.original !== close.path.original) { var errorNode = {loc: openBlock.sexpr.loc}; - throw new Exception(openBlock.sexpr.id.original + ' doesn\'t match ' + close.path.original, errorNode); + throw new Exception(openBlock.sexpr.path.original + ' doesn\'t match ' + close.path.original, errorNode); } program.blockParams = openBlock.blockParams; |