Skip to content

Commit 0ff8dc1

Browse files
committed
fix: refactor to use more primordials
PR-URL: nodejs/node#44062 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Feng Yu <F3n67u@outlook.com> (cherry picked from commit 5e1873e91d8ccefc5576912c24795d229455166d)
1 parent 3604d09 commit 0ff8dc1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/internal/test_runner/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// https://github.com/nodejs/node/blob/5ec2d7bc5deed26ac640feff279800e39dacc9c0/lib/internal/test_runner/test.js
1+
// https://github.com/nodejs/node/blob/5e1873e91d8ccefc5576912c24795d229455166d/lib/internal/test_runner/test.js
22

33
'use strict'
44

@@ -242,7 +242,7 @@ class Test extends AsyncResource {
242242
}
243243

244244
addPendingSubtest (deferred) {
245-
this.pendingSubtests.push(deferred)
245+
ArrayPrototypePush(this.pendingSubtests, deferred)
246246
}
247247

248248
async processPendingSubtests () {

0 commit comments

Comments
 (0)