summaryrefslogtreecommitdiff
path: root/js/v8_source_maps.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/v8_source_maps.ts')
-rw-r--r--js/v8_source_maps.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/v8_source_maps.ts b/js/v8_source_maps.ts
index 94c437f6d..1852a8982 100644
--- a/js/v8_source_maps.ts
+++ b/js/v8_source_maps.ts
@@ -26,6 +26,7 @@ type GetGeneratedContentsCallback = (fileName: string) => string | RawSourceMap;
let getGeneratedContents: GetGeneratedContentsCallback;
+// @internal
export function install(options: Options) {
getGeneratedContents = options.getGeneratedContents;
if (options.installPrepareStackTrace) {
@@ -33,6 +34,7 @@ export function install(options: Options) {
}
}
+// @internal
export function prepareStackTraceWrapper(
error: Error,
stack: CallSite[]
@@ -48,6 +50,7 @@ export function prepareStackTraceWrapper(
}
}
+// @internal
export function prepareStackTrace(error: Error, stack: CallSite[]): string {
const frames = stack.map(
(frame: CallSite) => `\n at ${wrapCallSite(frame).toString()}`
@@ -55,6 +58,7 @@ export function prepareStackTrace(error: Error, stack: CallSite[]): string {
return error.toString() + frames.join("");
}
+// @internal
export function wrapCallSite(frame: CallSite): CallSite {
if (frame.isNative()) {
return frame;