blob: b50c63e7763dfd76d0981e1ea03d20106f30a8a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// 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());
|