| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cb2cbf2 commit 030b744
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -347,6 +347,12 @@ function setupProcessObject() { | |||
| 347 | 347 | const origProcProto = Object.getPrototypeOf(process); | |
| 348 | 348 | Object.setPrototypeOf(origProcProto, EventEmitter.prototype); | |
| 349 | 349 | EventEmitter.call(process); | |
| 350 | + Object.defineProperty(process, Symbol.toStringTag, { | ||
| 351 | + enumerable: false, | ||
| 352 | + writable: false, | ||
| 353 | + configurable: false, | ||
| 354 | + value: 'process' | ||
| 355 | + }); | ||
| 350 | 356 | // Make process globally available to users by putting it on the global proxy | |
| 351 | 357 | global.process = process; | |
| 352 | 358 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,6 @@ | |||
| 1 | + // Flags: --experimental-modules | ||
| 2 | + import '../common'; | ||
| 3 | + import assert from 'assert'; | ||
| 4 | + import process from 'process'; | ||
| 5 | + | ||
| 6 | + assert.strictEqual(Object.prototype.toString.call(process), '[object process]'); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments