diff options
author | kpdecker <kpdecker@gmail.com> | 2014-08-14 12:25:35 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-08-14 12:25:35 -0500 |
commit | cb22ee5681b1eb1f89ee675651c018b77dd1524d (patch) | |
tree | 6e0090585ce47b53fad8a3428179a02a721eda66 /lib/handlebars/compiler/javascript-compiler.js | |
parent | 9ab31e1fc6c94e5c13f9e6a10e23b1c1ed79c504 (diff) | |
download | handlebars.js-cb22ee5681b1eb1f89ee675651c018b77dd1524d.zip handlebars.js-cb22ee5681b1eb1f89ee675651c018b77dd1524d.tar.gz handlebars.js-cb22ee5681b1eb1f89ee675651c018b77dd1524d.tar.bz2 |
Increase test coverage a touch
Diffstat (limited to 'lib/handlebars/compiler/javascript-compiler.js')
-rw-r--r-- | lib/handlebars/compiler/javascript-compiler.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js index ef02cc7..d52f2a0 100644 --- a/lib/handlebars/compiler/javascript-compiler.js +++ b/lib/handlebars/compiler/javascript-compiler.js @@ -99,6 +99,7 @@ JavaScriptCompiler.prototype = { // Flush any trailing content that might be pending. this.pushSource(''); + /* istanbul ignore next */ if (this.stackSlot || this.inlineStack.length || this.compileStack.length) { throw new Exception('Compile completed with content left on stack'); } @@ -551,10 +552,6 @@ JavaScriptCompiler.prototype = { var helper = this.setupHelper(paramSize, name); var lookup = (isSimple ? helper.name + ' || ' : '') + nonHelper + ' || helperMissing'; - if (helper.paramsInit) { - lookup += ',' + helper.paramsInit; - } - this.push('((' + lookup + ').call(' + helper.callParams + '))'); // Always flush subexpressions. This is both to prevent the compounding size issue that @@ -849,6 +846,7 @@ JavaScriptCompiler.prototype = { return item.value; } else { if (!inline) { + /* istanbul ignore next */ if (!this.stackSlot) { throw new Exception('Invalid stack pop'); } |