diff options
author | crowlKats <crowlkats@gmail.com> | 2020-03-13 10:22:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 10:22:22 +0100 |
commit | e435c2be158ce8657dbff0664b6db222fe4e586c (patch) | |
tree | b0e72033be2ce51a70fd2c2af23e6da131a642bb /cli/js/error_stack.ts | |
parent | 3ac642c183981a366e1db565c16b81f864b07ee4 (diff) |
Remove doc strings from cli/js TS files (#4329)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'cli/js/error_stack.ts')
-rw-r--r-- | cli/js/error_stack.ts | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/cli/js/error_stack.ts b/cli/js/error_stack.ts index 8d2badc20..6ec8752e6 100644 --- a/cli/js/error_stack.ts +++ b/cli/js/error_stack.ts @@ -5,9 +5,6 @@ import { applySourceMap, Location } from "./ops/errors.ts"; import { assert } from "./util.ts"; import { exposeForTest } from "./internals.ts"; -/** Mutate the call site so that it returns the location, instead of its - * original location. - */ function patchCallSite(callSite: CallSite, location: Location): CallSite { return { getThis(): unknown { @@ -61,10 +58,6 @@ function patchCallSite(callSite: CallSite, location: Location): CallSite { }; } -/** Return a string representations of a CallSite's method call name - * - * This is adapted directly from V8. - */ function getMethodCall(callSite: CallSite): string { let result = ""; @@ -100,10 +93,6 @@ function getMethodCall(callSite: CallSite): string { return result; } -/** Return a string representations of a CallSite's file location - * - * This is adapted directly from V8. - */ function getFileLocation(callSite: CallSite): string { if (callSite.isNative()) { return "native"; @@ -137,10 +126,6 @@ function getFileLocation(callSite: CallSite): string { return result; } -/** Convert a CallSite to a string. - * - * This is adapted directly from V8. - */ function callSiteToString(callSite: CallSite): string { let result = ""; const functionName = callSite.getFunctionName(); @@ -178,9 +163,6 @@ function callSiteToString(callSite: CallSite): string { return result; } -/** A replacement for the default stack trace preparer which will op into Rust - * to apply source maps to individual sites - */ function prepareStackTrace( error: Error, structuredStackTrace: CallSite[] @@ -211,12 +193,6 @@ function prepareStackTrace( ); } -/** Sets the `prepareStackTrace` method on the Error constructor which will - * op into Rust to remap source code for caught errors where the `.stack` is - * being accessed. - * - * See: https://v8.dev/docs/stack-trace-api - */ // @internal export function setPrepareStackTrace(ErrorConstructor: typeof Error): void { ErrorConstructor.prepareStackTrace = prepareStackTrace; |