From 9cd7d598405f8bf6600775827f870848fd3e120a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 5 May 2020 23:13:04 +0200 Subject: fix(cli): fix paths in internal stack traces (#5093) This commit updates "deno_typescript" crate to properly map bundle entrypoint file to internal specifier. All import specifiers were remapped from "file:///a/b/c.ts" to "$deno$/a/b/c.ts", but that was not the case for entrypoint file "main.ts" and "compiler.ts". Because of that internal stack traces were inconsistent; showing "file:///some/random/path/on/ci/machine.ts" URL in frames that originate from "main.ts" or "compiler.ts" and "$deno$/file.ts" for all other imports. --- cli/tests/020_json_modules.ts.out | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests/020_json_modules.ts.out') diff --git a/cli/tests/020_json_modules.ts.out b/cli/tests/020_json_modules.ts.out index 02106dafc..cb923561b 100644 --- a/cli/tests/020_json_modules.ts.out +++ b/cli/tests/020_json_modules.ts.out @@ -4,6 +4,6 @@ error: Uncaught TypeError: Cannot resolve extension for "[WILDCARD]config.json" at new SourceFile ($deno$/compiler/sourcefile.ts:[WILDCARD]) at processImports ($deno$/compiler/imports.ts:[WILDCARD]) at async Object.processImports ($deno$/compiler/imports.ts:[WILDCARD]) - at async compile ([WILDCARD]compiler.ts:[WILDCARD]) - at async tsCompilerOnMessage ([WILDCARD]compiler.ts:[WILDCARD]) + at async compile ($deno$/compiler.ts:[WILDCARD]) + at async tsCompilerOnMessage ($deno$/compiler.ts:[WILDCARD]) at async workerMessageRecvCallback ($deno$/runtime_worker.ts:[WILDCARD]) -- cgit v1.2.3