Skip to content

Commit f162bfb

Browse files
committed
stream: replace native methods with primordials
Replace native methods with primordials.
1 parent 879b95e commit f162bfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/streams/operators.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function map(fn, options) {
118118

119119
PromisePrototypeThen(val, afterItemProcessed, onCatch);
120120

121-
queue.push(val);
121+
ArrayPrototypePush(queue, val);
122122
if (next) {
123123
next();
124124
next = null;
@@ -130,11 +130,11 @@ function map(fn, options) {
130130
});
131131
}
132132
}
133-
queue.push(kEof);
133+
ArrayPrototypePush(queue, kEof);
134134
} catch (err) {
135135
const val = PromiseReject(err);
136136
PromisePrototypeThen(val, afterItemProcessed, onCatch);
137-
queue.push(val);
137+
ArrayPrototypePush(queue, val);
138138
} finally {
139139
done = true;
140140
if (next) {

0 commit comments

Comments
 (0)