diff options
author | kpdecker <kpdecker@gmail.com> | 2014-11-07 18:38:56 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-11-08 14:35:23 -0600 |
commit | 83bcbee222077350ee2b7e3322f0cdad18f34b83 (patch) | |
tree | 5bb92dc2aad418bf95f6b2bf896fc81b577a46d0 /lib/handlebars/compiler/javascript-compiler.js | |
parent | 30034c75e78c13d1311de65669760d13024a0993 (diff) | |
download | handlebars.js-83bcbee222077350ee2b7e3322f0cdad18f34b83.zip handlebars.js-83bcbee222077350ee2b7e3322f0cdad18f34b83.tar.gz handlebars.js-83bcbee222077350ee2b7e3322f0cdad18f34b83.tar.bz2 |
Ignore unused code paths
We don’t want to remove these as the generic code may need it in the future, but these code paths are not triggered through the existing language constructs.
Diffstat (limited to 'lib/handlebars/compiler/javascript-compiler.js')
-rw-r--r-- | lib/handlebars/compiler/javascript-compiler.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js index 2c23632..4b7ee6f 100644 --- a/lib/handlebars/compiler/javascript-compiler.js +++ b/lib/handlebars/compiler/javascript-compiler.js @@ -763,6 +763,7 @@ JavaScriptCompiler.prototype = { this.inlineStack = []; for (var i = 0, len = inlineStack.length; i < len; i++) { var entry = inlineStack[i]; + /* istanbul ignore if */ if (entry instanceof Literal) { this.compileStack.push(entry); } else { @@ -798,6 +799,7 @@ JavaScriptCompiler.prototype = { var stack = (this.isInline() ? this.inlineStack : this.compileStack), item = stack[stack.length - 1]; + /* istanbul ignore if */ if (item instanceof Literal) { return item.value; } else { |