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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user