diff options
Diffstat (limited to 'cli/lib.rs')
-rw-r--r-- | cli/lib.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cli/lib.rs b/cli/lib.rs index fe20cd135..7a0d66cf5 100644 --- a/cli/lib.rs +++ b/cli/lib.rs @@ -378,7 +378,6 @@ fn run_repl(flags: DenoFlags) { } fn run_script(flags: DenoFlags) { - let use_current_thread = flags.current_thread; let (mut worker, state) = create_worker_and_state(flags); let maybe_main_module = state.main_module.as_ref(); @@ -416,11 +415,7 @@ fn run_script(flags: DenoFlags) { js_check(worker_.execute("window.dispatchEvent(new Event('unload'))")); }; - if use_current_thread { - tokio_util::run_on_current_thread(main_future); - } else { - tokio_util::run(main_future); - } + tokio_util::run(main_future); } fn format_command(files: Option<Vec<String>>, check: bool) { |