diff options
Diffstat (limited to 'js/format_error.ts')
-rw-r--r-- | js/format_error.ts | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/js/format_error.ts b/js/format_error.ts deleted file mode 100644 index 801da0d0b..000000000 --- a/js/format_error.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import * as dispatch from "./dispatch.ts"; -import { sendSync } from "./dispatch_json.ts"; - -// TODO(bartlomieju): move to `repl.ts`? -export function formatError(errString: string): string { - const res = sendSync(dispatch.OP_FORMAT_ERROR, { error: errString }); - return res.error; -} |