xref: /third_party/node/test/parallel/test-tls-legacy-deprecated.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/parallel/
11cb0ef41Sopenharmony_ci// Flags: --no-warnings
21cb0ef41Sopenharmony_ci'use strict';
31cb0ef41Sopenharmony_ciconst common = require('../common');
41cb0ef41Sopenharmony_ciif (!common.hasCrypto)
51cb0ef41Sopenharmony_ci  common.skip('missing crypto');
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ciconst tls = require('tls');
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_cicommon.expectWarning(
101cb0ef41Sopenharmony_ci  'DeprecationWarning',
111cb0ef41Sopenharmony_ci  'tls.createSecurePair() is deprecated. Please use tls.TLSSocket instead.',
121cb0ef41Sopenharmony_ci  'DEP0064'
131cb0ef41Sopenharmony_ci);
141cb0ef41Sopenharmony_ci
151cb0ef41Sopenharmony_citls.createSecurePair();
16

Indexes created Thu Nov 07 10:32:03 CST 2024