1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-12 18:42:18 -05:00
denoland-deno/cli/tests/testdata
Nayeem Rahman b183737fc9 fix(core): preserve syntax error locations in dynamic imports (#18664)
Fixes #6259.

Adds the location for v8 syntax errors to the message (`message += " at
{location}"`) when rethrowing them for dynamic imports.

Discussing with @bartlomieju on discord I proposed just preserving v8's
error and not reconstructing it, allowing the standard stack trace to
just point to the syntax error instead of the dynamic import. But on
further thought this way has parity with SWC's syntax errors + has the
advantage of showing both the syntax error and dynamic import location.

```ts
// temp.js
await import("./temp2.js");

// temp2.js
function foo() {
  await Promise.resolve();
}

// Before:
// error: Uncaught (in promise) SyntaxError: Unexpected reserved word
// await import("./temp2.js");
// ^
//     at async file:///.../temp.js:1:1

// After:
// error: Uncaught (in promise) SyntaxError: Unexpected reserved word at file:///.../temp2.js:2:3
// await import("./temp2.js");
// ^
//     at async file:///.../temp.js:1:1
```
2023-04-12 15:52:08 +02:00
..
assets refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
bench feat(bench): change --json output format (#17888) 2023-02-23 12:59:23 +01:00
benches refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
bundle feat(cli): --ext parameter for run, compile, and bundle (#17172) 2023-03-22 10:15:53 -04:00
cache perf: more efficient deno cache and npm package info usage (#16592) 2022-11-11 11:33:57 -05:00
cert refactor: use deno_graph for npm specifiers (#17858) 2023-02-22 14:15:25 -05:00
check fix(check): regression where config "types" entries caused type checking errors (#18124) 2023-03-11 11:43:45 -05:00
commonjs refactor(ext/node): untangle dependencies between js files (#18284) 2023-03-20 14:05:13 -04:00
compile feat(compile): Add support for web workers in standalone mode (#17657) 2023-03-19 23:32:54 +01:00
coverage fix(coverage): ignore files from npm registry (#18457) 2023-03-31 11:43:20 -06:00
doc chore: update deno_doc (#16515) 2022-11-02 18:51:37 +01:00
dynamic_import refactor: integrate deno_graph into CLI (#12369) 2021-10-11 08:26:22 +11:00
encoding
eval refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
file_extensions fix(cli): restore deno run - to handle stdin as typescript (#18391) 2023-03-23 12:45:43 -04:00
fmt feat(fmt): make semi-colon option a boolean (#17527) 2023-01-25 15:06:00 -05:00
import_assertions upgrade: v8 10.4.132.5 (#14874) 2022-06-15 12:30:19 -04:00
import_maps feat: embed import map in the config file (#17478) 2023-01-25 21:13:40 +01:00
info refactor: use deno_graph for npm specifiers (#17858) 2023-02-22 14:15:25 -05:00
inspector feat: add --inspect-wait flag (#17001) 2022-12-12 15:33:30 +01:00
install feat: subcommands type-check only local files by default (#14623) 2022-05-17 23:53:42 +02:00
jsx feat: suggest adding a "node:" prefix for bare specifiers that look like built-in Node modules (#17519) 2023-01-24 15:14:49 -05:00
lint fix: upgrade deno_ast to 0.23 (#17269) 2023-01-04 18:54:54 -05:00
lockfile/basic chore(tests): fix flaky test_no_lock (#18206) 2023-03-16 00:03:36 +09:00
lsp refactor(lsp): improve test client initialization (#18015) 2023-03-08 23:15:20 +00:00
malformed_config feat: auto-discover config file (#13313) 2022-01-17 20:10:17 -05:00
module_graph
npm fix(npm): reload an npm package's dependency's information when version not found (#18622) 2023-04-12 15:52:07 +02:00
package_json fix(npm): show a progress bar when initializing the node_modules folder (#18136) 2023-03-13 18:18:29 +00:00
repl refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
run fix(core): preserve syntax error locations in dynamic imports (#18664) 2023-04-12 15:52:08 +02:00
runtime refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
subdir fix(cli): bundle command support shebang file (#17113) 2023-01-03 16:19:28 +00:00
task fix(npm): show a progress bar when initializing the node_modules folder (#18136) 2023-03-13 18:18:29 +00:00
test chore: fix flaky tests checking ms when CI is slow (#18559) 2023-04-12 15:49:40 +02:00
tls
tsc
tsc2
type_definitions
types refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
vendor refactor: make resolver required (#17783) 2023-02-15 11:30:54 -05:00
webcrypto fix(ext/crypto): decode id-RSASSA-PSS with default params (#12147) 2021-10-01 11:14:16 +02:00
workers fix(cli/graph_util): don't append referrer info for root module errors (#17730) 2023-02-11 10:36:29 -05:00
.gitignore fix(ext/node): fix npm module resolution when --node-modules-dir specified (#17896) 2023-02-23 22:28:12 +09:00
cat.ts chore: update std submodule and its imports (#17408) 2023-01-15 21:09:26 +01:00
echo.ts
echo_server.ts chore: update std submodule and its imports (#17408) 2023-01-15 21:09:26 +01:00
error_cause_recursive_aggregate.ts feat(cli): show error cause recursion information (#16384) 2022-10-26 15:37:45 +02:00
error_cause_recursive_aggregate.ts.out feat(cli): show error cause recursion information (#16384) 2022-10-26 15:37:45 +02:00
error_cause_recursive_tail.ts fix: add error cause in recursive cause tail (#16306) 2022-10-16 21:16:46 +02:00
error_cause_recursive_tail.ts.out feat(cli): show error cause recursion information (#16384) 2022-10-26 15:37:45 +02:00
navigator_language.ts feat: introduce navigator.language (#12322) 2022-10-18 15:33:35 +02:00
navigator_languages.ts feat: introduce navigator.language (#12322) 2022-10-18 15:33:35 +02:00
symlink_to_subdir