11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_cirequire('../common'); 31cb0ef41Sopenharmony_ciconst assert = require('assert'); 41cb0ef41Sopenharmony_ciconst net = require('net'); 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ciassert.throws(() => net.createServer('path'), 71cb0ef41Sopenharmony_ci { 81cb0ef41Sopenharmony_ci code: 'ERR_INVALID_ARG_TYPE', 91cb0ef41Sopenharmony_ci name: 'TypeError' 101cb0ef41Sopenharmony_ci }); 111cb0ef41Sopenharmony_ci 121cb0ef41Sopenharmony_ciassert.throws(() => net.createServer(0), 131cb0ef41Sopenharmony_ci { 141cb0ef41Sopenharmony_ci code: 'ERR_INVALID_ARG_TYPE', 151cb0ef41Sopenharmony_ci name: 'TypeError' 161cb0ef41Sopenharmony_ci }); 17