@@ -38,13 +38,13 @@ assert.throws(function() {
38
38
child . on ( 'error' , common . mustNotCall ( ) ) ;
39
39
} , TypeError ) ;
40
40
41
- // verify that valid argument combinations do not throw
41
+ // Verify that valid argument combinations do not throw.
42
42
spawn ( cmd ) ;
43
43
spawn ( cmd , [ ] ) ;
44
44
spawn ( cmd , { } ) ;
45
45
spawn ( cmd , [ ] , { } ) ;
46
46
47
- // verify that invalid argument combinations throw
47
+ // Verify that invalid argument combinations throw.
48
48
assert . throws ( function ( ) {
49
49
spawn ( ) ;
50
50
} , invalidFileMsg ) ;
@@ -74,7 +74,7 @@ assert.throws(function() {
74
74
spawn ( cmd , [ ] , 1 ) ;
75
75
} , invalidOptionsMsg ) ;
76
76
77
- // Argument types for combinatorics
77
+ // Argument types for combinatorics.
78
78
const a = [ ] ;
79
79
const o = { } ;
80
80
function c ( ) { }
@@ -92,7 +92,7 @@ spawn(cmd, a);
92
92
spawn ( cmd , a , o ) ;
93
93
spawn ( cmd , o ) ;
94
94
95
- // Variants of undefined as explicit 'no argument' at a position
95
+ // Variants of undefined as explicit 'no argument' at a position.
96
96
spawn ( cmd , u , o ) ;
97
97
spawn ( cmd , a , u ) ;
98
98
@@ -103,7 +103,7 @@ assert.throws(function() { spawn(cmd, s); }, TypeError);
103
103
assert . throws ( function ( ) { spawn ( cmd , a , s ) ; } , TypeError ) ;
104
104
105
105
106
- // verify that execFile has same argument parsing behavior as spawn
106
+ // Verify that execFile has same argument parsing behavior as spawn.
107
107
//
108
108
// function execFile(file=f [,args=a] [, options=o] [, callback=c]) has valid
109
109
// combinations:
@@ -124,7 +124,7 @@ execFile(cmd, o);
124
124
execFile ( cmd , o , c ) ;
125
125
execFile ( cmd , c ) ;
126
126
127
- // Variants of undefined as explicit 'no argument' at a position
127
+ // Variants of undefined as explicit 'no argument' at a position.
128
128
execFile ( cmd , u , o , c ) ;
129
129
execFile ( cmd , a , u , c ) ;
130
130
execFile ( cmd , a , o , u ) ;
@@ -146,7 +146,7 @@ execFile(cmd, o, n);
146
146
execFile ( cmd , c , u ) ;
147
147
execFile ( cmd , c , n ) ;
148
148
149
- // string is invalid in arg position (this may seem strange, but is
149
+ // String is invalid in arg position (this may seem strange, but is
150
150
// consistent across node API, cf. `net.createServer('not options', 'not
151
151
// callback')`
152
152
assert . throws ( function ( ) { execFile ( cmd , s , o , c ) ; } , TypeError ) ;
@@ -160,10 +160,9 @@ assert.throws(function() { execFile(cmd, a, u, s); }, TypeError);
160
160
assert . throws ( function ( ) { execFile ( cmd , a , n , s ) ; } , TypeError ) ;
161
161
assert . throws ( function ( ) { execFile ( cmd , u , o , s ) ; } , TypeError ) ;
162
162
assert . throws ( function ( ) { execFile ( cmd , n , o , s ) ; } , TypeError ) ;
163
- execFile ( cmd , c , s ) ;
163
+ execFile ( cmd , c , s ) ; // Should not throw.
164
164
165
-
166
- // verify that fork has same argument parsing behavior as spawn
165
+ // Verify that fork has same argument parsing behavior as spawn.
167
166
//
168
167
// function fork(file=f [,args=a] [, options=o]) has valid combinations:
169
168
// (f)
0 commit comments