-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal Assertion in AbortSignal
#54601
Comments
Dependent abort signal that allow one or more 'AbortSignal' object to depend on each other |
I'm sorry, I'm not exactly following your comment, could you elaborate? The issue, to clarify, is that in internal assertion is thrown in a place where a signal should be returned (to be WPT compliant). |
😞 Sorry for that i meant this: If you have any other suggestions or ideas on how to ensure WPT compliance while avoiding this assertion, I'd love to discuss them! |
Ahh okay. If you have an idea/improvement, opening a PR is a great way to contribute |
yeah , thanks will try to open one for this |
PR-URL: #54826 Fixes: #54466 Fixes: #54601 Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#54826 Fixes: nodejs#54466 Fixes: nodejs#54601 Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#54826 Fixes: nodejs#54466 Fixes: nodejs#54601 Reviewed-By: James M Snell <[email protected]>
I am working on updating the Web Platform Tests in #54468, but ran into an issue occuring with
AbortSignal
. I narrowed down the issue to a minimal reproduction, with leads to anERR_INTERNAL_ASSERTION
:The failed assertion is
node/lib/internal/abort_controller.js
Line 253 in 885692a
It seems to me that Node.js's current behavior is to fail the assertion when a signal has already aborted, however the WPT's expected behavior is that "Dependent signals for AbortSignal.any() are marked aborted before abort events fire":
https://github.com/web-platform-tests/wpt/blob/e78446e34a1921371658a5df08c71d83f50a2a2f/dom/abort/resources/abort-signal-any-tests.js#L193
The text was updated successfully, but these errors were encountered: