mirror of
https://github.com/nodejs/node.git
synced 2025-05-06 02:59:40 +00:00

Create `lib/internal/bootstrap/` and put bootstrappers there: Before: ``` lib/internal ├── ... ├── bootstrap_loaders.js └── bootstrap_node.js ``` After: ``` lib/internal ├── ... └── bootstrap ├── loaders.js └── node.js ``` PR-URL: https://github.com/nodejs/node/pull/19177 Refs: https://github.com/nodejs/node/pull/19112 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
15 lines
518 B
JavaScript
15 lines
518 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.
|
|
const { internalBinding } = require('internal/bootstrap/loaders');
|
|
module.exports = {
|
|
ModuleWrap: internalBinding('module_wrap').ModuleWrap,
|
|
};
|