Skip to content

Commit

Permalink
lib: propagate abortsignal reason in new AbortError constructor in blob
Browse files Browse the repository at this point in the history
Signed-off-by: James M Snell <jasnell@gmail.com>
  • Loading branch information
jasnell committed Nov 29, 2021
1 parent 9acdd81 commit df77f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/blob.js
Expand Up @@ -297,7 +297,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] =
Expand Down

0 comments on commit df77f2f

Please sign in to comment.