summaryrefslogtreecommitdiff
path: root/cli/lib.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-01-21 15:53:29 +0100
committerGitHub <noreply@github.com>2020-01-21 15:53:29 +0100
commit5e2fd183ff1fe240ddbd864dbf1e6a0941fb4582 (patch)
treebf550552bd54e7adbd87749ae663b8fafb2c4f0d /cli/lib.rs
parent0cd605515c99458fa80cd4a1a3906f3db37a86ca (diff)
refactor: Rename JS entry functions (#3732)
Diffstat (limited to 'cli/lib.rs')
-rw-r--r--cli/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/lib.rs b/cli/lib.rs
index e9a62375a..6bae9c46f 100644
--- a/cli/lib.rs
+++ b/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();