Skip to content

Commit 36dd39d

Browse files
jasnelltargos
authored andcommitted
lib: propagate abortsignal reason in new AbortError constructor in blob
Signed-off-by: James M Snell <[email protected]> PR-URL: #41008 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
1 parent e04c8a4 commit 36dd39d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/internal/blob.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class Blob{
292292

293293
job.ondone=(err,ab)=>{
294294
if(err!==undefined)
295-
returnreject(newAbortError());
295+
returnreject(newAbortError(undefined,{cause: err}));
296296
resolve(ab);
297297
};
298298
this[kArrayBufferPromise]=

0 commit comments

Comments
(0)