mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
internalBinding is used so often that it should just automatically be available for usage in internals. PR-URL: https://github.com/nodejs/node/pull/23025 Refs: https://github.com/nodejs/node/commit/2a9eb31 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Backport-PR-URL: https://github.com/nodejs/node/pull/23661 Backport-Reviewed-By: Gus Caplan <me@gus.host> Backport-Reviewed-By: Richard Lau <riclau@uk.ibm.com> Backport-Reviewed-By: Michaël Zasso <targos@protonmail.com> Backport-Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Backport-Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
15 lines
469 B
JavaScript
15 lines
469 B
JavaScript
'use strict';
|
|
|
|
process.emitWarning(
|
|
'These APIs are exposed only for testing and are not ' +
|
|
'tracked by any versioning system or deprecation process.',
|
|
'internal/test/binding');
|
|
|
|
// These exports should be scoped as specifically as possible
|
|
// to avoid exposing APIs because even with that warning and
|
|
// this file being internal people will still try to abuse it.
|
|
module.exports = {
|
|
ModuleWrap: internalBinding('module_wrap').ModuleWrap,
|
|
internalBinding
|
|
};
|