mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
05975d1fb1
PR-URL: https://github.com/nodejs/node/pull/45777 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
10 lines
220 B
JavaScript
10 lines
220 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const net = require('net');
|
|
|
|
assert.throws(() => {
|
|
net.connect({ port: 8080, autoSelectFamily: 'INVALID' });
|
|
}, { code: 'ERR_INVALID_ARG_TYPE' });
|