summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs29
1 files changed, 5 insertions, 24 deletions
diff --git a/cli/main.rs b/cli/main.rs
index a2d270d40..586c2ff10 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -49,9 +49,7 @@ use deno_runtime::fmt_errors::format_js_error;
use deno_runtime::tokio_util::create_and_run_current_thread_with_maybe_metrics;
use deno_terminal::colors;
use factory::CliFactory;
-use std::borrow::Cow;
use std::env;
-use std::env::current_exe;
use std::future::Future;
use std::path::PathBuf;
@@ -331,29 +329,12 @@ pub fn main() {
);
let args: Vec<_> = env::args_os().collect();
- let current_exe_path = current_exe().unwrap();
- let maybe_standalone = match standalone::extract_standalone(
- &current_exe_path,
- Cow::Borrowed(&args),
- ) {
- Ok(standalone) => standalone,
- Err(err) => exit_for_error(err),
- };
-
let future = async move {
- match maybe_standalone {
- Some(future) => {
- let (metadata, eszip) = future.await?;
- standalone::run(eszip, metadata).await
- }
- None => {
- // NOTE(lucacasonato): due to new PKU feature introduced in V8 11.6 we need to
- // initialize the V8 platform on a parent thread of all threads that will spawn
- // V8 isolates.
- let flags = resolve_flags_and_init(args)?;
- run_subcommand(flags).await
- }
- }
+ // NOTE(lucacasonato): due to new PKU feature introduced in V8 11.6 we need to
+ // initialize the V8 platform on a parent thread of all threads that will spawn
+ // V8 isolates.
+ let flags = resolve_flags_and_init(args)?;
+ run_subcommand(flags).await
};
match create_and_run_current_thread_with_maybe_metrics(future) {