tls: check arg types of renegotiate()
Don't throw on invalid property access if options is not provided, and ensure callback is a function.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines