@@ -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 ( ) { } ,
@@ -433,7 +433,7 @@ function _mustCallInner(fn, criteria = 1, field) {
433
433
[ field ] : criteria ,
434
434
actual : 0 ,
435
435
stack : inspect ( new Error ( ) ) ,
436
- name : fn . name || '<anonymous>'
436
+ name : fn . name || '<anonymous>' ,
437
437
} ;
438
438
439
439
// Add the exit listener only once to avoid listener leak warnings
@@ -476,7 +476,7 @@ function hasMultiLocalhost() {
476
476
477
477
function skipIfEslintMissing ( ) {
478
478
if ( ! fs . existsSync (
479
- path . join ( __dirname , '..' , '..' , 'tools' , 'node_modules' , 'eslint' )
479
+ path . join ( __dirname , '..' , '..' , 'tools' , 'node_modules' , 'eslint' ) ,
480
480
) ) {
481
481
skip ( 'missing ESLint' ) ;
482
482
}
@@ -565,7 +565,7 @@ function mustNotMutateObjectDeep(original) {
565
565
} ,
566
566
setPrototypeOf ( target , prototype ) {
567
567
assert . fail ( `Expected no side effects, got set prototype to ${ prototype } ` ) ;
568
- }
568
+ } ,
569
569
} ;
570
570
571
571
const proxy = new Proxy ( original , _mustNotMutateObjectDeepHandler ) ;
@@ -668,7 +668,7 @@ function expectWarning(nameOrMap, expected, code) {
668
668
if ( ! catchWarning [ warning . name ] ) {
669
669
throw new TypeError (
670
670
`"${ warning . name } " was triggered without being expected.\n` +
671
- inspect ( warning )
671
+ inspect ( warning ) ,
672
672
) ;
673
673
}
674
674
catchWarning [ warning . name ] ( warning ) ;
@@ -1032,5 +1032,5 @@ module.exports = new Proxy(common, {
1032
1032
if ( ! validProperties . has ( prop ) )
1033
1033
throw new Error ( `Using invalid common property: '${ prop } '` ) ;
1034
1034
return obj [ prop ] ;
1035
- }
1035
+ } ,
1036
1036
} ) ;
0 commit comments