mirror of https://github.com/nodejs/node.git
17 lines
382 B
JavaScript
17 lines
382 B
JavaScript
// Flags: --no-warnings
|
|
'use strict';
|
|
const common = require('../common');
|
|
if (!common.hasCrypto) {
|
|
common.skip('missing crypto');
|
|
return;
|
|
}
|
|
const assert = require('assert');
|
|
const tls = require('tls');
|
|
|
|
common.expectWarning(
|
|
'DeprecationWarning',
|
|
'tls.createSecurePair() is deprecated. Please use tls.Socket instead.'
|
|
);
|
|
|
|
assert.doesNotThrow(() => tls.createSecurePair());
|