diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/tests/059_fs_relative_path_perm.ts.out | 2 | ||||
-rw-r--r-- | cli/tsc/compiler.d.ts | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/cli/tests/059_fs_relative_path_perm.ts.out b/cli/tests/059_fs_relative_path_perm.ts.out index 92d6b5966..833db78bf 100644 --- a/cli/tests/059_fs_relative_path_perm.ts.out +++ b/cli/tests/059_fs_relative_path_perm.ts.out @@ -1,4 +1,4 @@ [WILDCARD]error: Uncaught PermissionDenied: read access to "non-existent", run again with the --allow-read flag - throw new ErrorClass(res.err.message); + throw new ErrorClass(res.err.message, ...args); ^ at [WILDCARD] diff --git a/cli/tsc/compiler.d.ts b/cli/tsc/compiler.d.ts index 7d102eb56..d37b56c06 100644 --- a/cli/tsc/compiler.d.ts +++ b/cli/tsc/compiler.d.ts @@ -37,7 +37,12 @@ declare global { jsonOpSync<T>(name: string, params: T): any; ops(): void; print(msg: string, code?: number): void; - registerErrorClass(name: string, Ctor: typeof Error): void; + registerErrorClass( + name: string, + Ctor: typeof Error, + // deno-lint-ignore no-explicit-any + ...args: any[] + ): void; } type LanguageServerRequest = |