Skip to content

Commit 7a355a9

Browse files
committed
util: replace native methods with primordials
Replace native methods with primordials.
1 parent 879b95e commit 7a355a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/util.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const {
44
ArrayFrom,
5+
ArrayPrototypePop,
56
ArrayPrototypePush,
67
ArrayPrototypeSlice,
78
ArrayPrototypeSort,
@@ -552,7 +553,7 @@ function join(output, separator) {
552553
function spliceOne(list, index) {
553554
for (; index + 1 < list.length; index++)
554555
list[index] = list[index + 1];
555-
list.pop();
556+
ArrayPrototypePop(list);
556557
}
557558

558559
const kNodeModulesRE = /^(?:.*)[\\/]node_modules[\\/]/;

0 commit comments

Comments
 (0)