Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tls: use validateFunction for
options.checkServerIdentity
If user uses invalid type for `options.checkServerIdentity` in tls.connect(), it's not internal issue of Node.js. So validateFunction() is more proper than assert(). Fixes: nodejs#49839 PR-URL: nodejs#49896 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
- Loading branch information