summaryrefslogtreecommitdiff
path: root/cli/args
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-11-01 19:04:54 -0400
committerGitHub <noreply@github.com>2023-11-01 23:04:54 +0000
commit58d543a480463ed24de77ec155f1d7e87bb7b234 (patch)
treeeffd93acd92a5bfe2a3422ecc30c3119d61bca14 /cli/args
parentab72019a17ccc077384c37eaeae15fffc9ce4d92 (diff)
fix(repl): jsxImportSource was not working (#21049)
I made some fixes in deno_ast to make this possible and we forgot to update this.
Diffstat (limited to 'cli/args')
-rw-r--r--cli/args/flags.rs4
-rw-r--r--cli/args/mod.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs
index e558fe391..fa1534e0c 100644
--- a/cli/args/flags.rs
+++ b/cli/args/flags.rs
@@ -417,7 +417,7 @@ pub struct Flags {
pub reload: bool,
pub seed: Option<u64>,
pub unstable: bool,
- pub unstable_bare_node_builtlins: bool,
+ pub unstable_bare_node_builtins: bool,
pub unstable_byonm: bool,
pub unstable_features: Vec<String>,
pub unsafely_ignore_certificate_errors: Option<Vec<String>>,
@@ -856,7 +856,7 @@ pub fn flags_from_vec(args: Vec<String>) -> clap::error::Result<Flags> {
.push(deno_runtime::deno_cron::UNSTABLE_FEATURE_NAME.to_string());
}
- flags.unstable_bare_node_builtlins =
+ flags.unstable_bare_node_builtins =
matches.get_flag("unstable-bare-node-builtins");
flags.unstable_byonm = matches.get_flag("unstable-byonm");
diff --git a/cli/args/mod.rs b/cli/args/mod.rs
index 1d28df124..fa8d94de5 100644
--- a/cli/args/mod.rs
+++ b/cli/args/mod.rs
@@ -1249,8 +1249,8 @@ impl CliOptions {
self.flags.unstable
}
- pub fn unstable_bare_node_builtlins(&self) -> bool {
- self.flags.unstable_bare_node_builtlins
+ pub fn unstable_bare_node_builtins(&self) -> bool {
+ self.flags.unstable_bare_node_builtins
|| self
.maybe_config_file()
.as_ref()