diff --git a/source-map-support.js b/source-map-support.js old mode 100644 new mode 100755 index 2942b5e..377ffd1 --- a/source-map-support.js +++ b/source-map-support.js @@ -336,7 +336,11 @@ function CallSiteToString() { line += typeName + "."; } line += functionName; - if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) { + if ( + methodName && + functionName.indexOf("." + methodName) !== -1 && + functionName.indexOf("." + methodName) !== functionName.length - methodName.length - 1 + ) { line += " [as " + methodName + "]"; } } else {