File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines 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
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]' ) ;
You can’t perform that action at this time.
0 commit comments