File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22const {
33 ArrayPrototypePush,
4- ArrayPrototypeReduce,
54 ArrayPrototypeShift,
65 ArrayPrototypeUnshift,
76 FunctionPrototype,
87 Number,
9- PromiseResolve,
108 ReflectApply,
119 SafeMap,
10+ SafePromiseAll,
1211} = primordials ;
1312const { AsyncResource } = require ( 'async_hooks' ) ;
1413const {
@@ -480,10 +479,7 @@ class Suite extends Test {
480479 this . parent . activeSubtests ++ ;
481480 this . startTime = hrtime ( ) ;
482481 const subtests = this . skipped || this . error ? [ ] : this . subtests ;
483- await ArrayPrototypeReduce ( subtests , async ( prev , subtest ) => {
484- await prev ;
485- await subtest . run ( ) ;
486- } , PromiseResolve ( ) ) ;
482+ await SafePromiseAll ( subtests , ( subtests ) => subtests . start ( ) ) ;
487483 this . pass ( ) ;
488484 this . postRun ( ) ;
489485 }
You can’t perform that action at this time.
0 commit comments