1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-15 16:43:44 -05:00
denoland-deno/cli/tests/testdata/import_assertions
Andreu Botella 9def44979a
fix(cli): Don't strip shebangs from modules (#13220)
Deno's module loader currently strips a shebang if a module file
starts with one. However, this is no longer necessary, since there is
a stage-3 TC39 that adds support for shebangs (or "hashbangs") to the
language (https://github.com/tc39/proposal-hashbang), and V8, `tsc`
and `swc` all support it.

Furthermore, stripping shebangs causes a correctness bug with JSON
modules, since a JSON file with a shebang should not parse as a JSON
module, yet it does with this stripping. This change fixes this.
2022-01-16 16:48:32 +01:00
..
data.json feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
dynamic_error.out feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
dynamic_error.ts feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
dynamic_import.out feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
dynamic_import.ts feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
json_with_shebang.json fix(cli): Don't strip shebangs from modules (#13220) 2022-01-16 16:48:32 +01:00
json_with_shebang.ts fix(cli): Don't strip shebangs from modules (#13220) 2022-01-16 16:48:32 +01:00
json_with_shebang.ts.out fix(cli): Don't strip shebangs from modules (#13220) 2022-01-16 16:48:32 +01:00
static_error.out chore: update deno_graph and deno_doc (#13173) 2021-12-22 14:25:06 +01:00
static_error.ts feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
static_export.out feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
static_export.ts feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
static_import.out feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
static_import.ts feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
static_reexport.ts feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
type_check.out feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
type_check.ts feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00