mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 13:40:37 +00:00

This commit makes the tls_wrap builtin an internal builtin, and changes usage of the builtin from using process.binding('tls_wrap') to use internalBinding instead. Refs: https://github.com/nodejs/node/issues/22160 PR-URL: https://github.com/nodejs/node/pull/22429 Refs: https://github.com/nodejs/node/issues/22160 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
14 lines
375 B
JavaScript
14 lines
375 B
JavaScript
// Flags: --expose-internals
|
|
'use strict';
|
|
|
|
const common = require('../common');
|
|
if (!common.hasCrypto)
|
|
common.skip('missing crypto');
|
|
|
|
const util = require('util');
|
|
const { internalBinding } = require('internal/test/binding');
|
|
const TLSWrap = internalBinding('tls_wrap').TLSWrap;
|
|
|
|
// This will abort if internal pointer is not set to nullptr.
|
|
util.inspect(new TLSWrap());
|