You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
util.aborted(signal, resource) should return a Promise that settles when an AbortSignal aborts. Perry currently rejects the helper at compile time as an unimplemented node:util API.
aborted typeof: function
promise: true
resolved event: abort true
Perry Behavior
A focused parity probe in test-files/tmp_util_aborted.ts fails to compile:
Error: `util.aborted` is not implemented in Perry — see `perry --print-api-manifest` for the supported surface, or set `PERRY_ALLOW_UNIMPLEMENTED=1` to ignore. (#463)
This is listed in the broad util helper tracker #2514, but it belongs with the focused AbortSignal helper work rather than unrelated util formatting/debug/system-error helpers.
Suggested PR Cut
Batch this with related issues in: node:util: cancellation and structured-clone helper parity
I’m taking this as part of the focused node:util cancellation helper PR cut with #3419 and #3427. Intended scope: implement util.aborted(signal, resource) with Node-shaped Promise resolution on abort, alongside the transferable AbortSignal helpers and the minimum signal event/reason behavior they share. Non-goals: stream pipeline abort semantics and unrelated util helper APIs.
Activity
andrewtdiz commentedon May 30, 2026
I’m taking this as part of the focused node:util cancellation helper PR cut with #3419 and #3427. Intended scope: implement util.aborted(signal, resource) with Node-shaped Promise resolution on abort, alongside the transferable AbortSignal helpers and the minimum signal event/reason behavior they share. Non-goals: stream pipeline abort semantics and unrelated util helper APIs.
andrewtdiz commentedon May 30, 2026
Opened PR #3449 for this: #3449