Skip to content

Commit

Permalink
Merge branch 'main' into warm_node
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Mar 21, 2024
2 parents 5876131 + e45f433 commit 4da83fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/args/mod.rs
Expand Up @@ -107,6 +107,9 @@ pub static DENO_DISABLE_PEDANTIC_NODE_WARNINGS: Lazy<bool> = Lazy::new(|| {
.is_some()
});

static DENO_FUTURE: Lazy<bool> =
Lazy::new(|| std::env::var("DENO_FUTURE").ok().is_some());

pub fn jsr_url() -> &'static Url {
static JSR_URL: Lazy<Url> = Lazy::new(|| {
let env_var_name = "JSR_URL";
Expand Down Expand Up @@ -978,7 +981,7 @@ impl CliOptions {
}

pub fn enable_future_features(&self) -> bool {
std::env::var("DENO_FUTURE").is_ok()
*DENO_FUTURE
}

pub fn resolve_main_module(&self) -> Result<ModuleSpecifier, AnyError> {
Expand Down

0 comments on commit 4da83fe

Please sign in to comment.