-
Notifications
You must be signed in to change notification settings - Fork 3
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
Safari Crypto.getRandomValues error #9
Comments
I think this is similar to an error we encountered in scala-js/scala-js-dom#669 as well. Chrome: We should add Safari to CI. |
Actually @nadenf: can you confirm that your code does not throw an error in Chrome and/or Firefox? It's not obvious to me why Safari would behave differently here. |
@armanbilge .. Had the same "Illegal invocation" error in Chrome as well but thought it was unrelated. Ends up working if I switch to: scalajs-fake-insecure-java-securerandom. |
Please don't. This doesn't do what you want. It's insecure. |
It seems some browsers don't like what amounts to the following: const getRV = crypto.getRandomValues;
getRV(...); They want a direct invocation like crypto.getRandomValues(...); |
Hum no but that doesn't make sense. We already call So what is different on Safari? Also, how did you observe a failure in Chrome, even though we have Chrome set up in the CI? There must be something else missing here. Are you using some kind of bundler that attempts to provide a polyfill of |
I just did a test of |
Getting the following error on Safari Mac (17614.1.25.9.10, 17614):
Does not appear in Chrome.
Looks like it was an issue with the ClosureScript implementation as well.
The text was updated successfully, but these errors were encountered: