mirror of
https://github.com/denoland/deno.git
synced 2025-01-08 23:28:18 -05:00
std/node: toString for globals (#5013)
This commit is contained in:
parent
80e2211141
commit
898773d3f8
2 changed files with 14 additions and 0 deletions
|
@ -1,2 +1,9 @@
|
|||
Object.defineProperty(globalThis, Symbol.toStringTag, {
|
||||
value: "global",
|
||||
writable: false,
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
});
|
||||
|
||||
// @ts-ignore
|
||||
globalThis["global"] = globalThis;
|
||||
|
|
|
@ -38,6 +38,13 @@ export const process = {
|
|||
},
|
||||
};
|
||||
|
||||
Object.defineProperty(process, Symbol.toStringTag, {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: false,
|
||||
value: "process",
|
||||
});
|
||||
|
||||
Object.defineProperty(globalThis, "process", {
|
||||
value: process,
|
||||
enumerable: false,
|
||||
|
|
Loading…
Reference in a new issue