diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-09-04 13:21:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 14:21:02 +0200 |
commit | 0e0a5c24ea8b17d410c30bf3fcb70c749b35f8b3 (patch) | |
tree | 041d7c196780cae78fa320de50520263733a43fe /runtime | |
parent | 5ee671311a174b5461483db788f732fe736b6549 (diff) |
test: run js_unit_tests with `--unstable-*` flags (#25394)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/js/99_main.js | 35 | ||||
-rw-r--r-- | runtime/lib.rs | 2 |
2 files changed, 19 insertions, 18 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 6dd75b415..d0171acd2 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -722,26 +722,27 @@ function bootstrapMainRuntime(runtimeOptions, warmup = false) { target, ); + // TODO(bartlomieju): this is not ideal, but because we use `ObjectAssign` + // above any properties that are defined elsewhere using `Object.defineProperty` + // are lost. + let jupyterNs = undefined; + ObjectDefineProperty(finalDenoNs, "jupyter", { + get() { + if (jupyterNs) { + return jupyterNs; + } + throw new Error( + "Deno.jupyter is only available in `deno jupyter` subcommand.", + ); + }, + set(val) { + jupyterNs = val; + }, + }); + // TODO(bartlomieju): deprecate --unstable if (unstableFlag) { ObjectAssign(finalDenoNs, denoNsUnstable); - // TODO(bartlomieju): this is not ideal, but because we use `ObjectAssign` - // above any properties that are defined elsewhere using `Object.defineProperty` - // are lost. - let jupyterNs = undefined; - ObjectDefineProperty(finalDenoNs, "jupyter", { - get() { - if (jupyterNs) { - return jupyterNs; - } - throw new Error( - "Deno.jupyter is only available in `deno jupyter` subcommand.", - ); - }, - set(val) { - jupyterNs = val; - }, - }); } else { for (let i = 0; i <= unstableFeatures.length; i++) { const id = unstableFeatures[i]; diff --git a/runtime/lib.rs b/runtime/lib.rs index ed3f9fbc6..c8ab099f1 100644 --- a/runtime/lib.rs +++ b/runtime/lib.rs @@ -83,7 +83,7 @@ pub static UNSTABLE_GRANULAR_FLAGS: &[UnstableGranularFlag] = &[ UnstableGranularFlag { name: ops::http::UNSTABLE_FEATURE_NAME, help_text: "Enable unstable HTTP APIs", - show_in_help: false, + show_in_help: true, id: 5, }, UnstableGranularFlag { |