mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
9def44979a
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. |
||
---|---|---|
.. | ||
bundle_tests.rs | ||
cache_tests.rs | ||
compat_tests.rs | ||
compile_tests.rs | ||
coverage_tests.rs | ||
doc_tests.rs | ||
eval_tests.rs | ||
fmt_tests.rs | ||
info_tests.rs | ||
inspector_tests.rs | ||
install_tests.rs | ||
lint_tests.rs | ||
lsp_tests.rs | ||
mod.rs | ||
repl_tests.rs | ||
run_tests.rs | ||
test_tests.rs | ||
upgrade_tests.rs | ||
watcher_tests.rs | ||
worker_tests.rs |