summaryrefslogtreecommitdiff
path: root/cli/standalone/mod.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-06 15:01:09 +0100
committerGitHub <noreply@github.com>2024-01-06 19:31:09 +0530
commit13279cb0ab5f0573fe846d55c7e031ac4731436d (patch)
tree824639c81b7a88afdffeb4ed4b85334cdfad3844 /cli/standalone/mod.rs
parent49d8320e45df8695696de5127659f8dacddb9e2a (diff)
fix(compile): preserve granular unstable features (#21827)
Fix https://github.com/denoland/deno/issues/21814
Diffstat (limited to 'cli/standalone/mod.rs')
-rw-r--r--cli/standalone/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/standalone/mod.rs b/cli/standalone/mod.rs
index 32ae771c1..47a660fe1 100644
--- a/cli/standalone/mod.rs
+++ b/cli/standalone/mod.rs
@@ -488,6 +488,11 @@ pub async fn run(
if metadata.unstable {
checker.enable_legacy_unstable();
}
+ for feature in metadata.unstable_features {
+ // `metadata` is valid for the whole lifetime of the program, so we
+ // can leak the string here.
+ checker.enable_feature(feature.leak());
+ }
checker
});
let worker_factory = CliMainWorkerFactory::new(