Lines Matching refs:args
234 function connect(...args) {
235 const normalized = normalizeArgs(args);
285 function normalizeArgs(args) {
288 if (args.length === 0) {
294 const arg0 = args[0];
305 if (args.length > 1 && typeof args[1] === 'string') {
306 options.host = args[1];
310 const cb = args[args.length - 1];
1185 Socket.prototype.connect = function(...args) {
1191 if (ArrayIsArray(args[0]) && args[0][normalizedArgsSymbol]) {
1192 normalized = args[0];
1194 normalized = normalizeArgs(args);
1898 Server.prototype.listen = function(...args) {
1899 const normalized = normalizeArgs(args);
1912 toNumber(args.length > 1 && args[1]) ||
1913 toNumber(args.length > 2 && args[2]); // (port, host, backlog)
1935 if (args.length === 0 || typeof args[0] === 'function' ||