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
Is your feature request related to a problem? Please describe
A clear and concise description of what the problem is.
Yes. If I try to crypto.subtle.digest("SHA-512", msgUint8), that means async is required. But if I try to call it from js_set, then sync is required. TTBOMK, that's an inherent conflict that keeps js_set from being used with with crypto.subtle.digest.
Describe the solution you'd like
js_set'ing an async function should "do the right thing", instead of returning a string that vaguely describes the Promise.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I tried a few ways of turning the async crypto.subtle.digest into something synchronous, but none of them worked. The general Javascript community seems hostile to the idea.
I also tried to find a synchronous SHA-512 module, but found that none of the ones I tried were "compatible enough" with njs.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe
A clear and concise description of what the problem is.
Yes. If I try to crypto.subtle.digest("SHA-512", msgUint8), that means async is required. But if I try to call it from js_set, then sync is required. TTBOMK, that's an inherent conflict that keeps js_set from being used with with crypto.subtle.digest.
Describe the solution you'd like
js_set'ing an async function should "do the right thing", instead of returning a string that vaguely describes the Promise.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I tried a few ways of turning the async crypto.subtle.digest into something synchronous, but none of them worked. The general Javascript community seems hostile to the idea.
I also tried to find a synchronous SHA-512 module, but found that none of the ones I tried were "compatible enough" with njs.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: