Files
node/tools
Joyee Cheung 2a9eb316a1 src: move internal loaders out of bootstrap_node.js
- Moves the creation of `process.binding()`, `process._linkedBinding()`
  `internalBinding()` and `NativeModule` into a separate file
  `lib/internal/bootstrap_loaders.js`, and documents them there.
  This file will be compiled and run before `bootstrap_node.js`, which
  means we now bootstrap the internal module & binding system before
  actually bootstrapping Node.js.
- Rename the special ID that can be used to require `NativeModule`
  as `internal/bootstrap_loaders` since it is setup there. Also put
  `internalBinding` in the object exported by `NativeModule.require`
  instead of putting it inside the `NativeModule.wrapper`
- Use the original `getBinding()` to get the source code of native
  modules instead of getting it from `process.binding('native')`
  so that users cannot fake native modules by modifying the binding
  object.
- Names the bootstrapping functions so their names show up
  in the stack trace.

PR-URL: https://github.com/nodejs/node/pull/19112
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
2018-03-06 22:12:46 +08:00
..
2017-11-30 11:35:45 +01:00
2018-02-21 00:50:46 +02:00
2018-03-06 00:46:30 +09:00
2018-02-22 12:43:35 +01:00
2017-11-18 20:44:17 +01:00
2017-05-29 08:45:00 -07:00
2018-03-05 08:35:44 -06:00
2017-10-29 19:46:43 +01:00
2018-01-11 09:50:47 +01:00
2016-11-09 17:34:22 -05:00
2018-01-11 09:50:47 +01:00