2015-09-13 19:49:35 -07:00
|
|
|
'use strict';
|
2017-08-12 00:02:15 +03:00
|
|
|
const common = require('../common');
|
2015-09-13 19:49:35 -07:00
|
|
|
const net = require('net');
|
|
|
|
|
2017-12-06 22:16:44 +05:30
|
|
|
common.expectsError(function() { net.createServer('path'); },
|
|
|
|
{
|
|
|
|
code: 'ERR_INVALID_ARG_TYPE',
|
|
|
|
type: TypeError
|
|
|
|
});
|
2017-08-12 00:02:15 +03:00
|
|
|
|
2017-12-06 22:16:44 +05:30
|
|
|
common.expectsError(function() { net.createServer(0); },
|
|
|
|
{
|
|
|
|
code: 'ERR_INVALID_ARG_TYPE',
|
|
|
|
type: TypeError
|
|
|
|
});
|