Skip to content

Commit 4c9159a

Browse files
anonrigruyadorno
authored andcommitted
lib: improve transferable abort controller exec
PR-URL: #45525 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 5745bcb commit 4c9159a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/abort_controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ class AbortController {
334334

335335
static [kMakeTransferable]() {
336336
const controller = new AbortController();
337-
controller.#signal = transferableAbortSignal(controller.#signal);
337+
controller.#signal = createAbortSignal({ transferable: true });
338338
return controller;
339339
}
340340
}

0 commit comments

Comments
 (0)