From 7a355a9e14710de1188241046459b29ab08c3ad2 Mon Sep 17 00:00:00 2001 From: Ayoub Mabrouk Date: Mon, 29 Dec 2025 17:10:15 +0100 Subject: [PATCH] util: replace native methods with primordials Replace native methods with primordials. --- lib/internal/util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/internal/util.js b/lib/internal/util.js index 9739422d08284a..4cc0c9f93fa379 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -2,6 +2,7 @@ const { ArrayFrom, + ArrayPrototypePop, ArrayPrototypePush, ArrayPrototypeSlice, ArrayPrototypeSort, @@ -552,7 +553,7 @@ function join(output, separator) { function spliceOne(list, index) { for (; index + 1 < list.length; index++) list[index] = list[index + 1]; - list.pop(); + ArrayPrototypePop(list); } const kNodeModulesRE = /^(?:.*)[\\/]node_modules[\\/]/;