diff options
author | Nikolai Vavilov <vvnicholas@gmail.com> | 2020-04-30 20:58:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 13:58:40 -0400 |
commit | 898773d3f89b12e84d371644d4f13dec078bdc13 (patch) | |
tree | 6d45da4bd73ab2fae5efef1d104e22a6a0d9c218 /std/node/global.ts | |
parent | 80e22111416751ce34dbc5cb32ffa9f293517370 (diff) |
std/node: toString for globals (#5013)
Diffstat (limited to 'std/node/global.ts')
-rw-r--r-- | std/node/global.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/std/node/global.ts b/std/node/global.ts index c889e9c8d..c877d1d53 100644 --- a/std/node/global.ts +++ b/std/node/global.ts @@ -1,2 +1,9 @@ +Object.defineProperty(globalThis, Symbol.toStringTag, { + value: "global", + writable: false, + enumerable: false, + configurable: true, +}); + // @ts-ignore globalThis["global"] = globalThis; |