From eb2ae68c067979d6351983f0734a0c0ebb73253c Mon Sep 17 00:00:00 2001 From: Kuan Lu Date: Thu, 24 Jul 2025 12:28:26 -0700 Subject: [PATCH] add vulnerability fix --- source-map-support.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 source-map-support.js 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 {