@@ -39,7 +39,7 @@ const hasIntl = !!process.config.variables.v8_enable_i18n_support;
39
39
40
40
const {
41
41
atob,
42
- btoa
42
+ btoa,
43
43
} = require ( 'buffer' ) ;
44
44
45
45
// Some tests assume a umask of 0o022 so set that up front. Tests that need a
@@ -98,7 +98,7 @@ if (process.argv.length === 2 &&
98
98
console . log (
99
99
'NOTE: The test started as a child_process using these flags:' ,
100
100
inspect ( flags ) ,
101
- 'Use NODE_SKIP_FLAG_CHECK to run the test with the original flags.'
101
+ 'Use NODE_SKIP_FLAG_CHECK to run the test with the original flags.' ,
102
102
) ;
103
103
const args = [ ...flags , ...process . execArgv , ...process . argv . slice ( 1 ) ] ;
104
104
const options = { encoding : 'utf8' , stdio : 'inherit' } ;
@@ -175,7 +175,7 @@ if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {
175
175
}
176
176
initHandles [ id ] = {
177
177
resource,
178
- stack : inspect ( new Error ( ) ) . substr ( 6 )
178
+ stack : inspect ( new Error ( ) ) . substr ( 6 ) ,
179
179
} ;
180
180
} ,
181
181
before ( ) { } ,
@@ -435,7 +435,7 @@ function _mustCallInner(fn, criteria = 1, field) {
435
435
[ field ] : criteria ,
436
436
actual : 0 ,
437
437
stack : inspect ( new Error ( ) ) ,
438
- name : fn . name || '<anonymous>'
438
+ name : fn . name || '<anonymous>' ,
439
439
} ;
440
440
441
441
// Add the exit listener only once to avoid listener leak warnings
@@ -478,7 +478,7 @@ function hasMultiLocalhost() {
478
478
479
479
function skipIfEslintMissing ( ) {
480
480
if ( ! fs . existsSync (
481
- path . join ( __dirname , '..' , '..' , 'tools' , 'node_modules' , 'eslint' )
481
+ path . join ( __dirname , '..' , '..' , 'tools' , 'node_modules' , 'eslint' ) ,
482
482
) ) {
483
483
skip ( 'missing ESLint' ) ;
484
484
}
@@ -567,7 +567,7 @@ function mustNotMutateObjectDeep(original) {
567
567
} ,
568
568
setPrototypeOf ( target , prototype ) {
569
569
assert . fail ( `Expected no side effects, got set prototype to ${ prototype } ` ) ;
570
- }
570
+ } ,
571
571
} ;
572
572
573
573
const proxy = new Proxy ( original , _mustNotMutateObjectDeepHandler ) ;
@@ -670,7 +670,7 @@ function expectWarning(nameOrMap, expected, code) {
670
670
if ( ! catchWarning [ warning . name ] ) {
671
671
throw new TypeError (
672
672
`"${ warning . name } " was triggered without being expected.\n` +
673
- inspect ( warning )
673
+ inspect ( warning ) ,
674
674
) ;
675
675
}
676
676
catchWarning [ warning . name ] ( warning ) ;
@@ -1034,5 +1034,5 @@ module.exports = new Proxy(common, {
1034
1034
if ( ! validProperties . has ( prop ) )
1035
1035
throw new Error ( `Using invalid common property: '${ prop } '` ) ;
1036
1036
return obj [ prop ] ;
1037
- }
1037
+ } ,
1038
1038
} ) ;
0 commit comments