File tree 1 file changed +2
-1
lines changed
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');
10
10
const assert = require ( '../../assert' ) ;
11
11
12
12
const isNode14 = process . versions . node . indexOf ( '.' ) > 1 && process . versions . node . slice ( 0 , 2 ) >= 14 ;
13
+ const isNode15 = isNode14 && process . versions . node . slice ( 0 , 2 ) >= 15 ;
13
14
14
15
// Disable colored output to prevent color codes from breaking assertion
15
16
// 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
61
62
}
62
63
63
64
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
65
66
const fakeProcess = { } ;
66
67
Object . setPrototypeOf ( fakeProcess , Object . getPrototypeOf ( process ) ) ;
67
68
Object . keys ( process ) . forEach ( prop => {
You can’t perform that action at this time.
0 commit comments