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.
This commit is contained in:
kpdecker
2014-11-07 18:38:56 -06:00
parent 30034c75e7
commit 83bcbee222
@@ -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 {