From df77f2fc3706669629f1a97b3dcd84d7a20e4283 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sun, 28 Nov 2021 12:54:47 -0800 Subject: [PATCH] lib: propagate abortsignal reason in new AbortError constructor in blob Signed-off-by: James M Snell --- lib/internal/blob.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/blob.js b/lib/internal/blob.js index 5fb25e04fe1abe..4b4c7b750c4258 100644 --- a/lib/internal/blob.js +++ b/lib/internal/blob.js @@ -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] =