summaryrefslogtreecommitdiff
path: root/std/node/process.ts
diff options
context:
space:
mode:
authorNikolai Vavilov <vvnicholas@gmail.com>2020-04-30 20:58:40 +0300
committerGitHub <noreply@github.com>2020-04-30 13:58:40 -0400
commit898773d3f89b12e84d371644d4f13dec078bdc13 (patch)
tree6d45da4bd73ab2fae5efef1d104e22a6a0d9c218 /std/node/process.ts
parent80e22111416751ce34dbc5cb32ffa9f293517370 (diff)
std/node: toString for globals (#5013)
Diffstat (limited to 'std/node/process.ts')
-rw-r--r--std/node/process.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/std/node/process.ts b/std/node/process.ts
index f4bdd8686..9da41b45b 100644
--- a/std/node/process.ts
+++ b/std/node/process.ts
@@ -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,