diff options
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; |