From 8ed39397d5bc7cec166beb56d9a0a72bb4b7ecfd Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 4 Aug 2022 06:03:28 +0200 Subject: [PATCH] test_runner: refactor to use more primordials PR-URL: https://github.com/nodejs/node/pull/44062 Reviewed-By: Mestery Reviewed-By: Feng Yu --- lib/internal/test_runner/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/test_runner/test.js b/lib/internal/test_runner/test.js index e2d068e87bb051..3ebb4bc0a2dff9 100644 --- a/lib/internal/test_runner/test.js +++ b/lib/internal/test_runner/test.js @@ -240,7 +240,7 @@ class Test extends AsyncResource { } addPendingSubtest(deferred) { - this.pendingSubtests.push(deferred); + ArrayPrototypePush(this.pendingSubtests, deferred); } async processPendingSubtests() {