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 5c8ce91 commit b50a963Copy full SHA for b50a963
1 file changed
lib/internal/blob.js
@@ -2,6 +2,7 @@
2
3
const {
4
ArrayFrom,
5
+ ArrayPrototypePush,
6
MathMax,
7
MathMin,
8
ObjectDefineProperties,
@@ -424,7 +425,7 @@ function arrayBuffer(blob) {
424
425
return;
426
}
427
if (buffer !== undefined)
- buffers.push(buffer);
428
+ ArrayPrototypePush(buffers, buffer);
429
queueMicrotask(() => readNext());
430
});
431
};
@@ -442,7 +443,7 @@ function createBlobReaderStream(reader) {
442
443
},
444
pull(c) {
445
const { promise, resolve, reject } = PromiseWithResolvers();
- this.pendingPulls.push({ resolve, reject });
446
+ ArrayPrototypePush(this.pendingPulls, { resolve, reject });
447
const readNext = () => {
448
reader.pull((status, buffer) => {
449
// If pendingPulls is empty here, the stream had to have
0 commit comments