From f162bfb0edb446c2abf407dc076dde98ee6b67ce Mon Sep 17 00:00:00 2001 From: Ayoub Mabrouk Date: Mon, 29 Dec 2025 19:30:43 +0100 Subject: [PATCH] stream: replace native methods with primordials Replace native methods with primordials. --- lib/internal/streams/operators.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/internal/streams/operators.js b/lib/internal/streams/operators.js index 6db2df0e3646e0..d3ebbce8e920b0 100644 --- a/lib/internal/streams/operators.js +++ b/lib/internal/streams/operators.js @@ -118,7 +118,7 @@ function map(fn, options) { PromisePrototypeThen(val, afterItemProcessed, onCatch); - queue.push(val); + ArrayPrototypePush(queue, val); if (next) { next(); next = null; @@ -130,11 +130,11 @@ function map(fn, options) { }); } } - queue.push(kEof); + ArrayPrototypePush(queue, kEof); } catch (err) { const val = PromiseReject(err); PromisePrototypeThen(val, afterItemProcessed, onCatch); - queue.push(val); + ArrayPrototypePush(queue, val); } finally { done = true; if (next) {