diff options
Diffstat (limited to 'cli/js/format_error.ts')
-rw-r--r-- | cli/js/format_error.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cli/js/format_error.ts b/cli/js/format_error.ts index 21c4bcfa8..0a322338a 100644 --- a/cli/js/format_error.ts +++ b/cli/js/format_error.ts @@ -2,12 +2,6 @@ import { DiagnosticItem } from "./diagnostics.ts"; import { sendSync } from "./dispatch_json.ts"; -// TODO(bartlomieju): move to `repl.ts`? -export function formatError(errString: string): string { - const res = sendSync("op_format_error", { error: errString }); - return res.error; -} - /** * Format an array of diagnostic items and return them as a single string. * @param items An array of diagnostic items to format |