mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 22:04:26 +00:00

moves exposed internalBindings to a single location with short guidelines on how to expose them and a warning for users should they come across it PR-URL: https://github.com/nodejs/node/pull/18698 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
14 lines
451 B
JavaScript
14 lines
451 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,
|
|
};
|