net: fix abort on bad address input
Calling net.createConnection
with a bad path results in a segfault. This fixes this by checking for the type and by throwing a TypeError in case it's not a string.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
net