-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed as not planned
Labels
v18.xIssues that can be reproduced on v18.x or PRs targeting the v18.x-staging branch.Issues that can be reproduced on v18.x or PRs targeting the v18.x-staging branch.
Description
Version
18.14.2
Platform
Darwin c889f3b32dab 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64 arm Darwin
Subsystem
No response
What steps will reproduce the bug?
Providing an instance of AbortSignal to fetch:
fetch("some url", { signal: AbortSignal.timeout(1500) })
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
Using fetch's signal does not error. This is the behavior in 18.14.0.
What do you see instead?
An error is raised:
The "emitter" argument must be an instance of EventEmitter or EventTarget. Received an instance of AbortSignal
Additional information
Related issues:
Metadata
Metadata
Assignees
Labels
v18.xIssues that can be reproduced on v18.x or PRs targeting the v18.x-staging branch.Issues that can be reproduced on v18.x or PRs targeting the v18.x-staging branch.