-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
crypto: validate this in all webcrypto methods and getters
#42815
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
crypto: validate this in all webcrypto methods and getters
#42815
Conversation
|
Review requested:
|
Co-authored-by: Antoine du Hamel <[email protected]>
That seems perfectly reasonable to me, but it's not in accordance with the collaborator guide (or my interpretation of it). Anyway, my advice still stands, dismissing objections can create unnecessary "drama", so let's not do it. No hard feelings :) |
|
My deepest apologies, did not mean to create needless drama, FWIW, I dismissed an objection I have understood the purpose of and already addressed it. The collaborators guide you quote deals with objections one does not understand, asks for clarification, and doesn't get a response for 7 days. Let's not delve into this any further. No feelings were hurt <3 |
|
Landed in 603803e |
PR-URL: nodejs#42815 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #42815 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #42815 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #42815 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #42815 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #42815 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: nodejs/node#42815 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
This PR aligns
thisvalidation in webcrypto with other implementations.CryptoandSubtleCrypto(that become accessible with--experimental-global-webcrypto).getRandomValues()thisto be the actual instance and not aninstance ofthisto be the actual instance for all other methods and gettersSee with the following in other runtimes.
TypeError: Illegal invocationTypeError: '...' called on an object that does not implement interface ....TypeError: Can only call Crypto.getRandomValues on instances of ...TypeError: Illegal invocation