diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index 95ce8bcdb4ede8..fded7067b5b3dd 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -2932,7 +2932,6 @@ Object.defineProperty(connect, promisify.custom, { }); function createSecureServer(options, handler) { - assertIsObject(options, 'options'); return new Http2SecureServer(options, handler); } @@ -2941,7 +2940,6 @@ function createServer(options, handler) { handler = options; options = {}; } - assertIsObject(options, 'options'); return new Http2Server(options, handler); }