mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
16 lines
325 B
JavaScript
16 lines
325 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const common = require('../common');
|
||
|
|
||
|
if (!common.hasCrypto)
|
||
|
common.skip('missing crypto');
|
||
|
|
||
|
const http2 = require('http2');
|
||
|
|
||
|
const server = http2.createServer();
|
||
|
|
||
|
server.listen(0, common.mustCall(() => {
|
||
|
server.on('close', common.mustCall());
|
||
|
server[Symbol.asyncDispose]().then(common.mustCall());
|
||
|
}));
|