2015-09-13 19:49:35 -07:00
|
|
|
'use strict';
|
2016-05-29 03:06:56 -04:00
|
|
|
require('../common');
|
2015-09-13 19:49:35 -07:00
|
|
|
const assert = require('assert');
|
|
|
|
const net = require('net');
|
|
|
|
|
2017-04-22 11:07:32 -07:00
|
|
|
assert.throws(function() { net.createServer('path'); },
|
|
|
|
/^TypeError: options must be an object$/);
|
|
|
|
assert.throws(function() { net.createServer(0); },
|
|
|
|
/^TypeError: options must be an object$/);
|