Commit ba13d84 1 parent a933a75 commit ba13d84 Copy full SHA for ba13d84
File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
const {
3
3
ArrayPrototypePush,
4
- ArrayPrototypeReduce,
5
4
ArrayPrototypeShift,
6
5
ArrayPrototypeUnshift,
7
6
FunctionPrototype,
8
7
Number,
9
- PromiseResolve,
10
8
ReflectApply,
11
9
SafeMap,
10
+ SafePromiseAll,
12
11
} = primordials ;
13
12
const { AsyncResource } = require ( 'async_hooks' ) ;
14
13
const {
@@ -470,10 +469,7 @@ class Suite extends Test {
470
469
this . parent . activeSubtests ++ ;
471
470
this . startTime = hrtime ( ) ;
472
471
const subtests = this . skipped ? [ ] : this . subtests ;
473
- await ArrayPrototypeReduce ( subtests , async ( prev , subtest ) => {
474
- await prev ;
475
- await subtest . run ( ) ;
476
- } , PromiseResolve ( ) ) ;
472
+ await SafePromiseAll ( subtests , ( subtests ) => subtests . start ( ) ) ;
477
473
this . pass ( ) ;
478
474
this . postRun ( ) ;
479
475
}
You can’t perform that action at this time.
0 commit comments