Inline a function that only gets called in the constructor. Make call to `super()` more straightforward in the process by removing conditional involving the function as it only ever returns `undefined` or else throws. That made the code a little hard to understand, as without looking at the function, one would likely expect it to return `true` on success rather than `undefined`. PR-URL: https://github.com/nodejs/node/pull/35064 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> |
||
|---|---|---|
| .. | ||
| certificate.js | ||
| cipher.js | ||
| diffiehellman.js | ||
| hash.js | ||
| keygen.js | ||
| keys.js | ||
| pbkdf2.js | ||
| random.js | ||
| scrypt.js | ||
| sig.js | ||
| util.js | ||