0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00
deno/cli/tools
Bartek Iwańczuk f840906943
fix(core): prevent multiple main module loading (#12128)
This commit fixes a problem where loading and executing multiple 
modules leads to all of the having "import.meta.main" set to true.

Following Rust APIs were deprecated:
- deno_core::JsRuntime::load_module
- deno_runtime::Worker::execute_module
- deno_runtime::WebWorker::execute_module

Following Rust APIs were added:
- deno_core::JsRuntime::load_main_module
- deno_core::JsRuntime::load_side_module
- deno_runtime::Worker::execute_main_module
- deno_runtime::Worker::execute_side_module
- deno_runtime::WebWorker::execute_main_module

Trying to load multiple "main" modules into the runtime now results in an
error. If user needs to load additional "non-main" modules they should use
APIs for "side" module.
2021-09-18 03:44:53 +02:00
..
coverage.rs refactor(lsp): use deno_ast and cache swc ASTs (#11780) 2021-09-07 10:39:32 -04:00
doc.rs refactor: use import_map crate (#11974) 2021-09-11 03:38:24 +02:00
fmt.rs feat: add option flags to 'deno fmt' (#12060) 2021-09-13 22:06:45 +02:00
installer.rs chore: move test files to testdata directory (#11601) 2021-08-11 10:20:47 -04:00
lint.rs refactor(lint): reuse lint rules (#11934) 2021-09-08 07:08:33 +02:00
mod.rs refactor(cli): introduce module specifier test modes (#11769) 2021-08-26 21:21:58 +02:00
repl.rs fix(cli): better handling of source maps (#11954) 2021-09-08 14:05:34 +10:00
standalone.rs refactor: factor out DenoSubcommand enum variant into structs (#11896) 2021-09-04 01:33:35 +02:00
test.rs fix(core): prevent multiple main module loading (#12128) 2021-09-18 03:44:53 +02:00
upgrade.rs fix(cli/tools/upgrade): check if passed version is valid (#11296) 2021-07-07 14:59:39 -04:00