mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
feat(workers): Make the Deno
namespace configurable and unfrozen (#11888)
This is the worker counterpart of PR #11062.
This commit is contained in:
parent
b518f5e1ba
commit
c49eee551f
3 changed files with 10 additions and 16 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue