mirror of https://gitee.com/openkylin/nodejs.git
16 lines
324 B
JavaScript
16 lines
324 B
JavaScript
// 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();
|