Skip to content

net: throw error if port does not exist in options

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), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

#SimilarWeb_RnD

Merge request reports

Loading