Skip to content

Commit

Permalink
fixup! crypto: validate this value for getRandomValues
Browse files Browse the repository at this point in the history
Co-authored-by: Mestery <mestery@protonmail.com>
  • Loading branch information
aduh95 and Mesteery committed Jan 29, 2022
1 parent f4308aa commit 06e5d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/crypto/webcrypto.js
Expand Up @@ -692,7 +692,7 @@ const subtle = new SubtleCrypto();
class Crypto {}
const crypto = new Crypto();

function getRandomValues(_) {
function getRandomValues(array) {
if (!(this instanceof Crypto)) {
throw new ERR_INVALID_THIS('Crypto');
}
Expand Down

0 comments on commit 06e5d8b

Please sign in to comment.