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