diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-01-25 05:03:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 05:03:03 +0100 |
commit | f3711f28f4b5ddfd9a11d9952b0a33b75fc5bc9c (patch) | |
tree | e20562103e9d3a5aa3b47126bea1a773072792fe /cli/standalone.rs | |
parent | 900929f65c94585de713cb8864aacb5fdc065759 (diff) |
feat(cli): add `DENO_V8_FLAGS` env var (#17313)
Closes #5669
Diffstat (limited to 'cli/standalone.rs')
-rw-r--r-- | cli/standalone.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cli/standalone.rs b/cli/standalone.rs index 829baa557..063ad7d33 100644 --- a/cli/standalone.rs +++ b/cli/standalone.rs @@ -6,6 +6,7 @@ use crate::colors; use crate::file_fetcher::get_source_from_data_url; use crate::ops; use crate::proc_state::ProcState; +use crate::util::v8::construct_v8_flags; use crate::version; use crate::CliResolver; use deno_core::anyhow::Context; @@ -38,7 +39,6 @@ use import_map::parse_from_json; use log::Level; use std::env::current_exe; use std::io::SeekFrom; -use std::iter::once; use std::pin::Pin; use std::rc::Rc; use std::sync::Arc; @@ -248,12 +248,7 @@ pub async fn run( todo!("Workers are currently not supported in standalone binaries"); }); - // Keep in sync with `main.rs`. - v8_set_flags( - once("UNUSED_BUT_NECESSARY_ARG0".to_owned()) - .chain(metadata.v8_flags.iter().cloned()) - .collect::<Vec<_>>(), - ); + v8_set_flags(construct_v8_flags(&metadata.v8_flags, vec![])); let root_cert_store = ps.root_cert_store.clone(); |