From 8c1c929034d46101b6a51ec5cf5e2f307ed0c271 Mon Sep 17 00:00:00 2001 From: Nikolai Vavilov Date: Thu, 19 Mar 2020 16:42:07 +0200 Subject: fix: stack traces for modules imported via std/node's require (#4035) --- cli/js/globals.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cli') diff --git a/cli/js/globals.ts b/cli/js/globals.ts index 21ce7e619..1104762b9 100644 --- a/cli/js/globals.ts +++ b/cli/js/globals.ts @@ -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; -- cgit v1.2.3