summaryrefslogtreecommitdiff
path: root/cli/js/globals.ts
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-03-02 14:20:16 -0800
committerBert Belder <bertbelder@gmail.com>2020-03-02 14:20:16 -0800
commiteafd40feabaf14f9f88748c66fa319519fd69072 (patch)
treeccb3a5848fec4bc013aad774fc9c9bda2f894043 /cli/js/globals.ts
parent3fcbf8789e7f873f8a562b200ab82ea7cec173d8 (diff)
Do not convert exceptions to JSON and back (#4214)
Diffstat (limited to 'cli/js/globals.ts')
-rw-r--r--cli/js/globals.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/globals.ts b/cli/js/globals.ts
index 9a7161ff0..fd2082e40 100644
--- a/cli/js/globals.ts
+++ b/cli/js/globals.ts
@@ -96,7 +96,7 @@ declare global {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
evalContext(code: string): [any, EvalErrorInfo | null];
- errorToJSON: (e: Error) => string;
+ formatError: (e: Error) => string;
}
// Only `var` variables show up in the `globalThis` type when doing a global