@@ -63,7 +63,7 @@ function testUnref(queueSize) {
63
63
return new Promise ( ( resolve , reject ) => {
64
64
let output = '' ;
65
65
const child = fork ( __filename , [ 'child' , queueSize ] , {
66
- stdio : [ process . stdin , 'pipe' , process . stderr , 'ipc' ]
66
+ stdio : [ process . stdin , 'pipe' , process . stderr , 'ipc' ] ,
67
67
} ) ;
68
68
child . on ( 'close' , ( code ) => {
69
69
if ( code === 0 ) {
@@ -99,7 +99,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
99
99
. then ( ( ) => testWithJSMarshaller ( {
100
100
threadStarter : 'StartThread' ,
101
101
maxQueueSize : binding . MAX_QUEUE_SIZE ,
102
- quitAfter : binding . ARRAY_LENGTH
102
+ quitAfter : binding . ARRAY_LENGTH ,
103
103
} ) )
104
104
. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
105
105
@@ -110,7 +110,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
110
110
. then ( ( ) => testWithJSMarshaller ( {
111
111
threadStarter : 'StartThreadNoJsFunc' ,
112
112
maxQueueSize : binding . MAX_QUEUE_SIZE ,
113
- quitAfter : binding . ARRAY_LENGTH
113
+ quitAfter : binding . ARRAY_LENGTH ,
114
114
} ) )
115
115
. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
116
116
@@ -119,7 +119,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
119
119
. then ( ( ) => testWithJSMarshaller ( {
120
120
threadStarter : 'StartThread' ,
121
121
maxQueueSize : 0 ,
122
- quitAfter : binding . ARRAY_LENGTH
122
+ quitAfter : binding . ARRAY_LENGTH ,
123
123
} ) )
124
124
. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
125
125
@@ -128,7 +128,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
128
128
. then ( ( ) => testWithJSMarshaller ( {
129
129
threadStarter : 'StartThreadNonblocking' ,
130
130
maxQueueSize : binding . MAX_QUEUE_SIZE ,
131
- quitAfter : binding . ARRAY_LENGTH
131
+ quitAfter : binding . ARRAY_LENGTH ,
132
132
} ) )
133
133
. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
134
134
@@ -137,7 +137,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
137
137
. then ( ( ) => testWithJSMarshaller ( {
138
138
threadStarter : 'StartThread' ,
139
139
maxQueueSize : binding . MAX_QUEUE_SIZE ,
140
- quitAfter : 1
140
+ quitAfter : 1 ,
141
141
} ) )
142
142
. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
143
143
@@ -146,7 +146,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
146
146
. then ( ( ) => testWithJSMarshaller ( {
147
147
threadStarter : 'StartThread' ,
148
148
maxQueueSize : 0 ,
149
- quitAfter : 1
149
+ quitAfter : 1 ,
150
150
} ) )
151
151
. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
152
152
@@ -155,7 +155,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
155
155
. then ( ( ) => testWithJSMarshaller ( {
156
156
threadStarter : 'StartThreadNonblocking' ,
157
157
maxQueueSize : binding . MAX_QUEUE_SIZE ,
158
- quitAfter : 1
158
+ quitAfter : 1 ,
159
159
} ) )
160
160
. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
161
161
@@ -166,7 +166,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
166
166
threadStarter : 'StartThread' ,
167
167
quitAfter : 1 ,
168
168
maxQueueSize : binding . MAX_QUEUE_SIZE ,
169
- launchSecondary : true
169
+ launchSecondary : true ,
170
170
} ) )
171
171
. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
172
172
@@ -177,7 +177,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
177
177
threadStarter : 'StartThreadNonblocking' ,
178
178
quitAfter : 1 ,
179
179
maxQueueSize : binding . MAX_QUEUE_SIZE ,
180
- launchSecondary : true
180
+ launchSecondary : true ,
181
181
} ) )
182
182
. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
183
183
@@ -187,7 +187,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
187
187
threadStarter : 'StartThread' ,
188
188
quitAfter : 1 ,
189
189
maxQueueSize : binding . MAX_QUEUE_SIZE ,
190
- abort : true
190
+ abort : true ,
191
191
} ) )
192
192
. then ( ( result ) => assert . strictEqual ( result . indexOf ( 0 ) , - 1 ) )
193
193
@@ -197,7 +197,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
197
197
threadStarter : 'StartThread' ,
198
198
quitAfter : 1 ,
199
199
maxQueueSize : 0 ,
200
- abort : true
200
+ abort : true ,
201
201
} ) )
202
202
. then ( ( result ) => assert . strictEqual ( result . indexOf ( 0 ) , - 1 ) )
203
203
@@ -207,7 +207,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
207
207
threadStarter : 'StartThreadNonblocking' ,
208
208
quitAfter : 1 ,
209
209
maxQueueSize : binding . MAX_QUEUE_SIZE ,
210
- abort : true
210
+ abort : true ,
211
211
} ) )
212
212
. then ( ( result ) => assert . strictEqual ( result . indexOf ( 0 ) , - 1 ) )
213
213
@@ -216,7 +216,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
216
216
. then ( ( ) => testWithJSMarshaller ( {
217
217
threadStarter : 'StartThreadNonblocking' ,
218
218
maxQueueSize : binding . ARRAY_LENGTH >>> 1 ,
219
- quitAfter : binding . ARRAY_LENGTH
219
+ quitAfter : binding . ARRAY_LENGTH ,
220
220
} ) )
221
221
. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
222
222
0 commit comments