• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Flags: --no-warnings
2'use strict';
3const common = require('../common');
4if (!common.hasCrypto)
5  common.skip('missing crypto');
6
7const tls = require('tls');
8
9common.expectWarning(
10  'DeprecationWarning',
11  'tls.createSecurePair() is deprecated. Please use tls.TLSSocket instead.',
12  'DEP0064'
13);
14
15tls.createSecurePair();
16