mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
lib: propagate abortsignal reason in new AbortError constructor in blob
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/41008 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
parent
b3f5c3b9d6
commit
5401e96e5d
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ class Blob {
|
|||
|
||||
job.ondone = (err, ab) => {
|
||||
if (err !== undefined)
|
||||
return reject(new AbortError());
|
||||
return reject(new AbortError(undefined, { cause: err }));
|
||||
resolve(ab);
|
||||
};
|
||||
this[kArrayBufferPromise] =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue