blob: 8aa8fd31d2e255093545df36b2e4f369e78173ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Flags: --no-warnings
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const tls = require('tls');
common.expectWarning(
'DeprecationWarning',
'tls.createSecurePair() is deprecated. Please use tls.TLSSocket instead.',
'DEP0064'
);
tls.createSecurePair();
|