mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
chore: upgrade deno_core (#22782)
This commit is contained in:
parent
914b7495a8
commit
2d5b19277b
3 changed files with 19 additions and 7 deletions
|
@ -763,6 +763,12 @@ function bootstrapMainRuntime(runtimeOptions) {
|
|||
delete Object.prototype.__proto__;
|
||||
}
|
||||
|
||||
if (!ArrayPrototypeIncludes(unstableFeatures, unstableIds.temporal)) {
|
||||
// Removes the `Temporal` API.
|
||||
delete globalThis.Temporal;
|
||||
delete globalThis.Date.prototype.toTemporalInstant;
|
||||
}
|
||||
|
||||
// Setup `Deno` global - we're actually overriding already existing global
|
||||
// `Deno` with `Deno` namespace from "./deno.ts".
|
||||
ObjectDefineProperty(globalThis, "Deno", core.propReadOnly(finalDenoNs));
|
||||
|
@ -875,6 +881,12 @@ function bootstrapWorkerRuntime(
|
|||
delete Object.prototype.__proto__;
|
||||
}
|
||||
|
||||
if (!ArrayPrototypeIncludes(unstableFeatures, unstableIds.temporal)) {
|
||||
// Removes the `Temporal` API.
|
||||
delete globalThis.Temporal;
|
||||
delete globalThis.Date.prototype.toTemporalInstant;
|
||||
}
|
||||
|
||||
ObjectDefineProperties(finalDenoNs, {
|
||||
pid: core.propGetterOnly(opPid),
|
||||
noColor: core.propGetterOnly(() => op_bootstrap_no_color()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue