| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
If possible, it would be great if the regular expressions could cover the entire error message. For example, instead of /Bad format: 10/, use /^TypeError: Bad format: 10$/. |
Sorry, something went wrong.
|
@nodejs/testing |
Sorry, something went wrong.
There was a problem hiding this comment.
You can change this line to /^TypeError: "curve" argument should be a string$/.
Sorry, something went wrong.
- check exception when ECDH curve is undefined - check exception when getPublicKey format is invalid
|
@abouthiroppy Thanks! and sorry for letting you point out the same thing. I fixed it. |
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you for your contribution :)
Sorry, something went wrong.
Sorry, something went wrong.
* check exception when ECDH curve is undefined * check exception when getPublicKey format is invalid PR-URL: #11279 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* check exception when ECDH curve is undefined * check exception when getPublicKey format is invalid PR-URL: nodejs#11279 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* check exception when ECDH curve is undefined * check exception when getPublicKey format is invalid PR-URL: #11279 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* check exception when ECDH curve is undefined * check exception when getPublicKey format is invalid PR-URL: #11279 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
will need a backport PR to land on v4 |
Sorry, something went wrong.
* check exception when ECDH curve is undefined * check exception when getPublicKey format is invalid PR-URL: #11279 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
This PR improves test coverage on crypto dh functions.
Just add 2 exceptions check.
Please review.
Checklist
Affected core subsystem(s)
N/A