@@ -63,7 +63,7 @@ function testUnref(queueSize) {
6363 return new Promise ( ( resolve , reject ) => {
6464 let output = '' ;
6565 const child = fork ( __filename , [ 'child' , queueSize ] , {
66- stdio : [ process . stdin , 'pipe' , process . stderr , 'ipc' ]
66+ stdio : [ process . stdin , 'pipe' , process . stderr , 'ipc' ] ,
6767 } ) ;
6868 child . on ( 'close' , ( code ) => {
6969 if ( code === 0 ) {
@@ -99,7 +99,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
9999. then ( ( ) => testWithJSMarshaller ( {
100100 threadStarter : 'StartThread' ,
101101 maxQueueSize : binding . MAX_QUEUE_SIZE ,
102- quitAfter : binding . ARRAY_LENGTH
102+ quitAfter : binding . ARRAY_LENGTH ,
103103} ) )
104104. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
105105
@@ -110,7 +110,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
110110. then ( ( ) => testWithJSMarshaller ( {
111111 threadStarter : 'StartThreadNoJsFunc' ,
112112 maxQueueSize : binding . MAX_QUEUE_SIZE ,
113- quitAfter : binding . ARRAY_LENGTH
113+ quitAfter : binding . ARRAY_LENGTH ,
114114} ) )
115115. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
116116
@@ -119,7 +119,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
119119. then ( ( ) => testWithJSMarshaller ( {
120120 threadStarter : 'StartThread' ,
121121 maxQueueSize : 0 ,
122- quitAfter : binding . ARRAY_LENGTH
122+ quitAfter : binding . ARRAY_LENGTH ,
123123} ) )
124124. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
125125
@@ -128,7 +128,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
128128. then ( ( ) => testWithJSMarshaller ( {
129129 threadStarter : 'StartThreadNonblocking' ,
130130 maxQueueSize : binding . MAX_QUEUE_SIZE ,
131- quitAfter : binding . ARRAY_LENGTH
131+ quitAfter : binding . ARRAY_LENGTH ,
132132} ) )
133133. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
134134
@@ -137,7 +137,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
137137. then ( ( ) => testWithJSMarshaller ( {
138138 threadStarter : 'StartThread' ,
139139 maxQueueSize : binding . MAX_QUEUE_SIZE ,
140- quitAfter : 1
140+ quitAfter : 1 ,
141141} ) )
142142. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
143143
@@ -146,7 +146,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
146146. then ( ( ) => testWithJSMarshaller ( {
147147 threadStarter : 'StartThread' ,
148148 maxQueueSize : 0 ,
149- quitAfter : 1
149+ quitAfter : 1 ,
150150} ) )
151151. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
152152
@@ -155,7 +155,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
155155. then ( ( ) => testWithJSMarshaller ( {
156156 threadStarter : 'StartThreadNonblocking' ,
157157 maxQueueSize : binding . MAX_QUEUE_SIZE ,
158- quitAfter : 1
158+ quitAfter : 1 ,
159159} ) )
160160. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
161161
@@ -166,7 +166,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
166166 threadStarter : 'StartThread' ,
167167 quitAfter : 1 ,
168168 maxQueueSize : binding . MAX_QUEUE_SIZE ,
169- launchSecondary : true
169+ launchSecondary : true ,
170170} ) )
171171. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
172172
@@ -177,7 +177,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
177177 threadStarter : 'StartThreadNonblocking' ,
178178 quitAfter : 1 ,
179179 maxQueueSize : binding . MAX_QUEUE_SIZE ,
180- launchSecondary : true
180+ launchSecondary : true ,
181181} ) )
182182. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
183183
@@ -187,7 +187,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
187187 threadStarter : 'StartThread' ,
188188 quitAfter : 1 ,
189189 maxQueueSize : binding . MAX_QUEUE_SIZE ,
190- abort : true
190+ abort : true ,
191191} ) )
192192. then ( ( result ) => assert . strictEqual ( result . indexOf ( 0 ) , - 1 ) )
193193
@@ -197,7 +197,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
197197 threadStarter : 'StartThread' ,
198198 quitAfter : 1 ,
199199 maxQueueSize : 0 ,
200- abort : true
200+ abort : true ,
201201} ) )
202202. then ( ( result ) => assert . strictEqual ( result . indexOf ( 0 ) , - 1 ) )
203203
@@ -207,7 +207,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
207207 threadStarter : 'StartThreadNonblocking' ,
208208 quitAfter : 1 ,
209209 maxQueueSize : binding . MAX_QUEUE_SIZE ,
210- abort : true
210+ abort : true ,
211211} ) )
212212. then ( ( result ) => assert . strictEqual ( result . indexOf ( 0 ) , - 1 ) )
213213
@@ -216,7 +216,7 @@ new Promise(function testWithoutJSMarshaller(resolve) {
216216. then ( ( ) => testWithJSMarshaller ( {
217217 threadStarter : 'StartThreadNonblocking' ,
218218 maxQueueSize : binding . ARRAY_LENGTH >>> 1 ,
219- quitAfter : binding . ARRAY_LENGTH
219+ quitAfter : binding . ARRAY_LENGTH ,
220220} ) )
221221. then ( ( result ) => assert . deepStrictEqual ( result , expectedArray ) )
222222
0 commit comments