mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
buffer: fix blob range error with many chunks
PR-URL: https://github.com/nodejs/node/pull/47320 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
parent
1168ab6f05
commit
85705a4795
2 changed files with 16 additions and 1 deletions
|
@ -69,6 +69,8 @@ const {
|
|||
CountQueuingStrategy,
|
||||
} = require('internal/webstreams/queuingstrategies');
|
||||
|
||||
const { queueMicrotask } = require('internal/process/task_queues');
|
||||
|
||||
const kHandle = Symbol('kHandle');
|
||||
const kType = Symbol('kType');
|
||||
const kLength = Symbol('kLength');
|
||||
|
@ -284,7 +286,7 @@ class Blob {
|
|||
}
|
||||
if (buffer !== undefined)
|
||||
buffers.push(buffer);
|
||||
readNext();
|
||||
queueMicrotask(() => readNext());
|
||||
});
|
||||
};
|
||||
readNext();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue