tls: use `validateFunction` for `options.SNICallback` · nodejs/node@d905c61 · GitHub
Skip to content

Commit d905c61

Browse files
deokjinkimUlisesGascon
authored andcommitted
tls: use validateFunction for options.SNICallback
If user uses invalid type for `options.SNICallback` in TLSSocket(), it's not internal issue of Node.js. So validateFunction() is more proper than assert(). PR-URL: #50530 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 3844af2 commit d905c61

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

lib/_tls_wrap.js

Lines changed: 1 addition & 1 deletion

test/parallel/test-tls-snicallback-error.js

Lines changed: 16 additions & 6 deletions

0 commit comments

Comments
 (0)