mirror of
https://github.com/denoland/deno.git
synced 2025-02-08 07:16:56 -05:00
![David Sherret](/assets/img/avatar_default.png)
This slightly degrades the performance of CJS export analysis on subsequent runs because I changed it to no longer cache in the DENO_DIR with this PR (denort now properly has no idea about the DENO_DIR). We'll have to change it to embed this data in the binary and that will also allow us to get rid of swc in denort (will do that in a follow-up PR).
14 lines
394 B
Rust
14 lines
394 B
Rust
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
|
|
#[inline(always)]
|
|
pub fn construct_v8_flags(
|
|
default_v8_flags: &[String],
|
|
v8_flags: &[String],
|
|
env_v8_flags: Vec<String>,
|
|
) -> Vec<String> {
|
|
std::iter::once("UNUSED_BUT_NECESSARY_ARG0".to_owned())
|
|
.chain(default_v8_flags.iter().cloned())
|
|
.chain(env_v8_flags)
|
|
.chain(v8_flags.iter().cloned())
|
|
.collect::<Vec<_>>()
|
|
}
|