summaryrefslogtreecommitdiffstats
path: root/spec/javascript-compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-11-06 09:56:00 -0600
committerkpdecker <kpdecker@gmail.com>2014-11-08 17:50:01 -0600
commit3ee0682247a1be883810d7251a75a95a5aa7e943 (patch)
treec90a6ca50f4d4f3fc2dbf1982ff450ec3221a256 /spec/javascript-compiler.js
parent249f559104cb7f85736e7e83e38ccc67b9b84bf6 (diff)
downloadhandlebars.js-3ee0682247a1be883810d7251a75a95a5aa7e943.zip
handlebars.js-3ee0682247a1be883810d7251a75a95a5aa7e943.tar.gz
handlebars.js-3ee0682247a1be883810d7251a75a95a5aa7e943.tar.bz2
Generate source maps
Allow the precompiler to generate source maps when the srcFile parameter is passed. This refactors large chunks of the code generation pipeline, allowing metadata to be associated with code chunks as well as breaking out much of the code generation logic into a separate helper.
Diffstat (limited to 'spec/javascript-compiler.js')
-rw-r--r--spec/javascript-compiler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/javascript-compiler.js b/spec/javascript-compiler.js
index 1605868..4260567 100644
--- a/spec/javascript-compiler.js
+++ b/spec/javascript-compiler.js
@@ -63,7 +63,7 @@ describe('javascript-compiler api', function() {
});
it('should allow append buffer override', function() {
handlebarsEnv.JavaScriptCompiler.prototype.appendToBuffer = function(string) {
- return $superAppend.call(this, string + ' + "_foo"');
+ return $superAppend.call(this, [string, ' + "_foo"']);
};
shouldCompileTo("{{foo}}", { foo: "food" }, "food_foo");
});