diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-10-20 13:02:08 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-20 13:02:08 +0900 |
commit | fb73eb1e9dca3e93cc7efcf5c2244e0068733843 (patch) | |
tree | ef0d50f6a4f3ff14114cc4a5c544bb7f4dfd2cdf /cli/args/mod.rs | |
parent | 8d9fef3b8955eadfd4820455b422b5bec1cdad0a (diff) |
feat(unstable): allow bare specifier for builtin node module (#20728)
closes #20566
Diffstat (limited to 'cli/args/mod.rs')
-rw-r--r-- | cli/args/mod.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs index d91affed1..a95c4d840 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -1216,6 +1216,15 @@ impl CliOptions { self.flags.unstable } + pub fn unstable_bare_node_builtlins(&self) -> bool { + self.flags.unstable_bare_node_builtlins + || self + .maybe_config_file() + .as_ref() + .map(|c| c.json.unstable.contains(&"bare-node-builtins".to_string())) + .unwrap_or(false) + } + pub fn v8_flags(&self) -> &Vec<String> { &self.flags.v8_flags } |