Skip to content

WebCryptoAPI: Test whether a task is scheduled to resolve/reject promises #54144

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

twiss
Copy link
Member

@twiss twiss commented Aug 5, 2025

Add tests to check whether or not a task is scheduled to resolve/reject the promise returned by (a subset of) SubtleCrypto's methods, according to the Web Crypto spec.

This is being debated in w3c/webcrypto#389.

@panva
Copy link
Contributor

panva commented Aug 5, 2025

As I expected, checking this would make most of the WebCryptoAPI WPTs unusable for Node.js unless we spend considerable effort in fixes.

I wouldn't mind having such tests for w3c/webcrypto#389 but I'd like these to be separate tests files that wouldn't affect the ability to use the suite to determine the actual crypto operations are implemented correctly.

@twiss
Copy link
Member Author

twiss commented Aug 5, 2025

Sure, the way I wrote them was mainly the easiest way to find out the existing behavior of implementations, I wasn't proposing to merge them exactly like this, that's why it's just a draft :)

@panva
Copy link
Contributor

panva commented Aug 5, 2025

I expected as much, but still just making sure my position is recorded :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants