fix: stack traces for modules imported via std/node's require (#4035)

This commit is contained in:
Nikolai Vavilov 2020-03-19 16:42:07 +02:00 committed by GitHub
parent 74c37e759a
commit 8c1c929034
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 6 deletions

View file

@ -93,8 +93,10 @@ declare global {
shared: SharedArrayBuffer;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
evalContext(code: string): [any, EvalErrorInfo | null];
evalContext(
code: string,
scriptName?: string
): [unknown, EvalErrorInfo | null];
formatError: (e: Error) => string;