diff options
Diffstat (limited to 'v8_source_maps.ts')
-rw-r--r-- | v8_source_maps.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/v8_source_maps.ts b/v8_source_maps.ts index 7209e192c..0b7fc4e86 100644 --- a/v8_source_maps.ts +++ b/v8_source_maps.ts @@ -53,7 +53,7 @@ export function prepareStackTraceWrapper( export function prepareStackTrace(error: Error, stack: CallSite[]): string { const frames = stack.map( - (frame: CallSite) => "\n at " + wrapCallSite(frame).toString() + (frame: CallSite) => `\n at ${wrapCallSite(frame).toString()}` ); return error.toString() + frames.join(""); } @@ -162,7 +162,7 @@ function CallSiteToString(frame: CallSite): string { functionName.indexOf("." + methodName) !== functionName.length - methodName.length - 1 ) { - line += " [as " + methodName + "]"; + line += ` [as ${ methodName} ]`; } } else { line += typeName + "." + (methodName || "<anonymous>"); @@ -176,7 +176,7 @@ function CallSiteToString(frame: CallSite): string { addSuffix = false; } if (addSuffix) { - line += " (" + fileLocation + ")"; + line += ` (${fileLocation})`; } return line; } @@ -265,7 +265,7 @@ function mapEvalOrigin(origin: string): string { // Parse nested eval() calls using recursion match = /^eval at ([^(]+) \((.+)\)$/.exec(origin); if (match) { - return "eval at " + match[1] + " (" + mapEvalOrigin(match[2]) + ")"; + return `eval at ${match[1]} (${mapEvalOrigin(match[2])})`; } // Make sure we still return useful information if we didn't find anything |