Skip to content

Commit b50a963

Browse files
committed
blob: replace native methods with primordials
Replace native methods with primordials.
1 parent 5c8ce91 commit b50a963

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/internal/blob.js

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

33
const {
44
ArrayFrom,
5+
ArrayPrototypePush,
56
MathMax,
67
MathMin,
78
ObjectDefineProperties,
@@ -424,7 +425,7 @@ function arrayBuffer(blob) {
424425
return;
425426
}
426427
if (buffer !== undefined)
427-
buffers.push(buffer);
428+
ArrayPrototypePush(buffers, buffer);
428429
queueMicrotask(() => readNext());
429430
});
430431
};
@@ -442,7 +443,7 @@ function createBlobReaderStream(reader) {
442443
},
443444
pull(c) {
444445
const { promise, resolve, reject } = PromiseWithResolvers();
445-
this.pendingPulls.push({ resolve, reject });
446+
ArrayPrototypePush(this.pendingPulls, { resolve, reject });
446447
const readNext = () => {
447448
reader.pull((status, buffer) => {
448449
// If pendingPulls is empty here, the stream had to have

0 commit comments

Comments
 (0)