diff options
author | Andreu Botella <abb@randomunok.com> | 2021-08-31 19:33:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 19:33:03 +0200 |
commit | c49eee551fdf78ab0230ec30d4537c98dd5d0c80 (patch) | |
tree | d592858019caf072920fa5dab1337974fe19987f /runtime/js/99_main.js | |
parent | b518f5e1ba4c3281d4aee4c637f410db382ce751 (diff) |
feat(workers): Make the `Deno` namespace configurable and unfrozen (#11888)
This is the worker counterpart of PR #11062.
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r-- | runtime/js/99_main.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index fc3eeecca..c9dd611da 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -695,8 +695,7 @@ delete Object.prototype.__proto__; }); // Setup `Deno` global - we're actually overriding already // existing global `Deno` with `Deno` namespace from "./deno.ts". - util.immutableDefine(globalThis, "Deno", finalDenoNs); - ObjectFreeze(globalThis.Deno); + ObjectDefineProperty(globalThis, "Deno", util.readOnly(finalDenoNs)); ObjectFreeze(globalThis.Deno.core); signals.setSignals(); } else { |