blob: 6b120821b0d3ac7cbd23c361907fad9a9e8e9acf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
'use strict';
const common = require('../common');
const assert = require('assert');
const net = require('net');
assert.throws(function() { net.createServer('path'); },
common.expectsError({
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError
}));
assert.throws(function() { net.createServer(0); },
common.expectsError({
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError
}));
|