summaryrefslogtreecommitdiff
path: root/js/v8_source_maps.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2018-09-04 12:23:38 -0700
committerRyan Dahl <ry@tinyclouds.org>2018-09-05 08:45:55 -0400
commit10dc71133af211de40e29e7a7ab8c470a4a2c417 (patch)
treef44cd8d8dc430f22cec974ac4ccd4490453de20b /js/v8_source_maps.ts
parent2c0d00840d09ce6d8f2b8615c9682ce4dfbfdb9d (diff)
Mark APIs at internal and include JSDoc in types
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;