We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 879b95e commit f162bfbCopy full SHA for f162bfb
lib/internal/streams/operators.js
@@ -118,7 +118,7 @@ function map(fn, options) {
118
119
PromisePrototypeThen(val, afterItemProcessed, onCatch);
120
121
- queue.push(val);
+ ArrayPrototypePush(queue, val);
122
if (next) {
123
next();
124
next = null;
@@ -130,11 +130,11 @@ function map(fn, options) {
130
});
131
}
132
133
- queue.push(kEof);
+ ArrayPrototypePush(queue, kEof);
134
} catch (err) {
135
const val = PromiseReject(err);
136
137
138
} finally {
139
done = true;
140
0 commit comments