mirror of
https://github.com/denoland/deno.git
synced 2025-09-24 19:32:30 +00:00
refactor: Rename JS entry functions (#3732)
This commit is contained in:
parent
0cd605515c
commit
5e2fd183ff
12 changed files with 58 additions and 56 deletions
10
cli/lib.rs
10
cli/lib.rs
|
@ -260,7 +260,7 @@ fn info_command(flags: DenoFlags) {
|
|||
let main_module = state.main_module.as_ref().unwrap().clone();
|
||||
|
||||
// Setup runtime.
|
||||
js_check(worker.execute("denoMain()"));
|
||||
js_check(worker.execute("bootstrapMainRuntime()"));
|
||||
debug!("main_module {}", main_module);
|
||||
|
||||
let main_future = async move {
|
||||
|
@ -282,7 +282,7 @@ fn fetch_command(flags: DenoFlags) {
|
|||
let main_module = state.main_module.as_ref().unwrap().clone();
|
||||
|
||||
// Setup runtime.
|
||||
js_check(worker.execute("denoMain()"));
|
||||
js_check(worker.execute("bootstrapMainRuntime()"));
|
||||
debug!("main_module {}", main_module);
|
||||
|
||||
let main_future = async move {
|
||||
|
@ -300,7 +300,7 @@ fn eval_command(flags: DenoFlags) {
|
|||
let main_module =
|
||||
ModuleSpecifier::resolve_url_or_path("./__$deno$eval.ts").unwrap();
|
||||
|
||||
js_check(worker.execute("denoMain()"));
|
||||
js_check(worker.execute("bootstrapMainRuntime()"));
|
||||
debug!("main_module {}", &main_module);
|
||||
|
||||
let main_future = async move {
|
||||
|
@ -346,7 +346,7 @@ fn bundle_command(flags: DenoFlags) {
|
|||
|
||||
fn run_repl(flags: DenoFlags) {
|
||||
let (mut worker, _state) = create_worker_and_state(flags);
|
||||
js_check(worker.execute("denoMain()"));
|
||||
js_check(worker.execute("bootstrapMainRuntime()"));
|
||||
let main_future = async move {
|
||||
loop {
|
||||
let result = worker.clone().await;
|
||||
|
@ -371,7 +371,7 @@ fn run_script(flags: DenoFlags) {
|
|||
// Normal situation of executing a module.
|
||||
|
||||
// Setup runtime.
|
||||
js_check(worker.execute("denoMain()"));
|
||||
js_check(worker.execute("bootstrapMainRuntime()"));
|
||||
debug!("main_module {}", main_module);
|
||||
|
||||
let mut worker_ = worker.clone();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue