-
-
Notifications
You must be signed in to change notification settings - Fork 37.5k
Can we refactor opensslErrorStack? #16521
Copy link
Copy link
Closed
Labels
cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.questionIssues asking questions about Node.js.Issues asking questions about Node.js.
Description
Activity
Metadata
Metadata
Assignees
Labels
cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.questionIssues asking questions about Node.js.Issues asking questions about Node.js.
Errors thrown from inside node_crypto might contain an additional
opensslErrorStackproperty. This property is generally undocumented save one reference here and I am unable to find any mentions of the property in use anywhere (GitHub and Google searches show no mentions of the property outside of our own errors.md doc and test-crypto.js file).Keeping it around seems significantly less than useful. I propose deprecating the property and changing things such that if (and only if) we are in a DEBUG build, the openssl stack trace can be output to the console immediately before the associated js error is thrown.
@nodejs/crypto @nodejs/tsc