net: throw error if port does not exist in options
requested to merge github/fork/yanivfriedensohn/throw-error-if-port-does-not-exist-in-options into master
Throw error ERR_PROPERTY_NOT_IN_OBJECT if the port property does not exist in the options object argument when calling server.listen().
Refs: https://github.com/nodejs/node/issues/16712
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
#SimilarWeb_RnD