@@ -322,26 +322,46 @@ var nonAtomicsFriendlyTypedArrayConstructors = floatArrayConstructors.concat([Ui
322
322
*
323
323
* @param {typedArrayConstructorCallback } f - the function to call for each typed array constructor.
324
324
* @param {Array } selected - An optional Array with filtered typed arrays
325
+ * @param {typedArrayArgFactoryFeature[] } [includeArgFactories] - for selecting
326
+ * initial constructor argument factory functions, rather than starting with
327
+ * all argument factories
328
+ * @param {typedArrayArgFactoryFeature[] } [excludeArgFactories] - for excluding
329
+ * constructor argument factory functions, after an initial selection
325
330
*/
326
- function testWithNonAtomicsFriendlyTypedArrayConstructors ( f ) {
327
- testWithTypedArrayConstructors ( f , nonAtomicsFriendlyTypedArrayConstructors ) ;
331
+ function testWithNonAtomicsFriendlyTypedArrayConstructors ( f , includeArgFactories , excludeArgFactories ) {
332
+ testWithAllTypedArrayConstructors (
333
+ f ,
334
+ nonAtomicsFriendlyTypedArrayConstructors ,
335
+ includeArgFactories ,
336
+ excludeArgFactories
337
+ ) ;
328
338
}
329
339
330
340
/**
331
341
* Calls the provided function for every "Atomics Friendly" typed array constructor.
332
342
*
333
343
* @param {typedArrayConstructorCallback } f - the function to call for each typed array constructor.
334
344
* @param {Array } selected - An optional Array with filtered typed arrays
345
+ * @param {typedArrayArgFactoryFeature[] } [includeArgFactories] - for selecting
346
+ * initial constructor argument factory functions, rather than starting with
347
+ * all argument factories
348
+ * @param {typedArrayArgFactoryFeature[] } [excludeArgFactories] - for excluding
349
+ * constructor argument factory functions, after an initial selection
335
350
*/
336
- function testWithAtomicsFriendlyTypedArrayConstructors ( f ) {
337
- testWithTypedArrayConstructors ( f , [
338
- Int32Array ,
339
- Int16Array ,
340
- Int8Array ,
341
- Uint32Array ,
342
- Uint16Array ,
343
- Uint8Array ,
344
- ] ) ;
351
+ function testWithAtomicsFriendlyTypedArrayConstructors ( f , includeArgFactories , excludeArgFactories ) {
352
+ testWithAllTypedArrayConstructors (
353
+ f ,
354
+ [
355
+ Int32Array ,
356
+ Int16Array ,
357
+ Int8Array ,
358
+ Uint32Array ,
359
+ Uint16Array ,
360
+ Uint8Array ,
361
+ ] ,
362
+ includeArgFactories ,
363
+ excludeArgFactories
364
+ ) ;
345
365
}
346
366
347
367
/**
@@ -368,7 +388,7 @@ function testTypedArrayConversions(byteConversionValues, fn) {
368
388
}
369
389
fn ( TA , value , exp , initial ) ;
370
390
} ) ;
371
- } ) ;
391
+ } , null , [ "passthrough" ] ) ;
372
392
}
373
393
374
394
/**
0 commit comments