createServer: allow empty options

This commit is contained in:
Andrew Kelley 2013-01-26 22:13:24 -05:00
parent c53f31af0e
commit 2434b49528

View file

@ -19,6 +19,7 @@ module.exports = {
};
function createServer(options) {
options = options || {};
var port = options.port != null ?
options.port :
options['server-port'] != null ?