Closed
Description
The getRandomBytes()
function will fail when called if it is not bound to the webcrypto
object.
See cloudflare/workers-sdk#6721 for a test case.
Currently the calls fail with: TypeError: Illegal invocation: function called with incorrect
this reference.
.
This has been fixed in unenv via unjs/unenv#309 but I think that the getRandomBytes()
function should not require any particular this
to work.
Metadata
Metadata
Assignees
Labels
No labels