summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/javascript-compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-11-26 09:01:03 -0600
committerkpdecker <kpdecker@gmail.com>2014-11-26 09:01:03 -0600
commit61dd721ca2a9055036d0f350970d033ca5227411 (patch)
tree398a184db4673792629973a3b11d9a46aa108bb0 /lib/handlebars/compiler/javascript-compiler.js
parent3a9440f954092558275cd4c05a35ba34bcbfa210 (diff)
downloadhandlebars.js-61dd721ca2a9055036d0f350970d033ca5227411.zip
handlebars.js-61dd721ca2a9055036d0f350970d033ca5227411.tar.gz
handlebars.js-61dd721ca2a9055036d0f350970d033ca5227411.tar.bz2
Update AST location info to match SpiderMonkey
Part of #889
Diffstat (limited to 'lib/handlebars/compiler/javascript-compiler.js')
-rw-r--r--lib/handlebars/compiler/javascript-compiler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js
index ba84a3e..639aa41 100644
--- a/lib/handlebars/compiler/javascript-compiler.js
+++ b/lib/handlebars/compiler/javascript-compiler.js
@@ -136,7 +136,7 @@ JavaScriptCompiler.prototype = {
if (!asObject) {
ret.compiler = JSON.stringify(ret.compiler);
- this.source.currentLocation = {firstLine: 1, firstColumn: 0};
+ this.source.currentLocation = {start: {line: 1, column: 0}};
ret = this.objectLiteral(ret);
if (options.srcName) {