File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const {isBrowser} = require('../common');
1010const assert = require ( '../../assert' ) ;
1111
1212const isNode14 = process . versions . node . indexOf ( '.' ) > 1 && process . versions . node . slice ( 0 , 2 ) >= 14 ;
13+ const isNode15 = isNode14 && process . versions . node . slice ( 0 , 2 ) >= 15 ;
1314
1415// Disable colored output to prevent color codes from breaking assertion
1516// message comparisons. This should only be an issue when process.stdout
@@ -61,7 +62,7 @@ if (!isBrowser && isNode14) { // At the moment global has its own type tag
6162}
6263
6364
64- if ( ! isBrowser && isNode14 ) { // At the moment process has its own type tag
65+ if ( ! isBrowser && isNode15 ) { // At the moment process has its own type tag
6566 const fakeProcess = { } ;
6667 Object . setPrototypeOf ( fakeProcess , Object . getPrototypeOf ( process ) ) ;
6768 Object . keys ( process ) . forEach ( prop => {
You can’t perform that action at this time.
0 commit comments