Do not convert exceptions to JSON and back (#4214)

This commit is contained in:
Bert Belder 2020-03-02 14:20:16 -08:00
parent 3fcbf8789e
commit eafd40feab
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461
14 changed files with 280 additions and 764 deletions

View file

@ -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