mirror of
https://github.com/zebrajr/node.git
synced 2025-12-07 00:20:38 +01: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
```
Backport-PR-URL: https://github.com/nodejs/node/pull/19374
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>
7 lines
177 B
JavaScript
7 lines
177 B
JavaScript
'use strict';
|
|
|
|
// exposes ModuleWrap for testing
|
|
|
|
const { internalBinding } = require('internal/bootstrap/loaders');
|
|
module.exports = internalBinding('module_wrap').ModuleWrap;
|