diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index f4e419b0f88334..9dfb62d27d9e50 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -2954,7 +2954,6 @@ Object.defineProperty(connect, promisify.custom, { }); function createSecureServer(options, handler) { - assertIsObject(options, 'options'); return new Http2SecureServer(options, handler); } @@ -2963,7 +2962,6 @@ function createServer(options, handler) { handler = options; options = {}; } - assertIsObject(options, 'options'); return new Http2Server(options, handler); }