1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/cli/tests
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
..
integration fix(cli): Don't strip shebangs from modules (#13220) 2022-01-16 16:48:32 +01:00
testdata fix(cli): Don't strip shebangs from modules (#13220) 2022-01-16 16:48:32 +01:00
unit feat(ext/crypto): implement AES-GCM decryption (#13319) 2022-01-14 14:18:53 +05:30
integration_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00