0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib/internal
Joyee Cheung 84156cf10e
module: do not share the internal require function with public loaders
This patch removes `NativeModule.require` and
`NativeModule.requireWithFallbackInDeps`. The public loaders now
have to use a special method
`NativeModule.prototype.compileForPublicLoader()` to compile native
modules. In addition this patch moves the decisions of proxifying
exports and throwing unknown builtin errors entirely to public
loaders, and skip those during internal use - therefore `loaders.js`,
which is compiled during bootstrap, no longer needs to be aware of
the value of `--experimental-modules`.

PR-URL: https://github.com/nodejs/node/pull/26549
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-03-19 04:05:38 +08:00
..
assert assert: refactor internal assert.js 2019-02-08 00:01:07 -08:00
bootstrap module: do not share the internal require function with public loaders 2019-03-19 04:05:38 +08:00
cluster cluster: refactor empty for in round_robin_handle.js 2019-03-13 07:11:08 +01:00
console console: prevent constructing console methods 2019-03-02 00:07:53 +01:00
crypto crypto: expose KeyObject class 2019-03-17 10:53:58 +01:00
dns dns: use IDNA 2008 to encode non-ascii hostnames 2019-01-28 20:42:44 +01:00
fs fs: use proper .destroy() implementation for SyncWriteStream 2019-03-18 10:30:07 +01:00
http2 http2: Http2ServerResponse.end() should always return self 2019-03-12 20:32:35 +01:00
main net: some scattered cleanup 2019-03-15 10:26:37 +08:00
modules module: do not share the internal require function with public loaders 2019-03-19 04:05:38 +08:00
per_context src,lib: make DOMException available in all Contexts 2019-03-15 16:54:19 +01:00
policy lib: use internal/options to query --abort-on-uncaught-exception 2019-02-08 08:09:56 +08:00
process report: remove unnecessary return in setters 2019-03-14 13:03:20 -07:00
repl repl: add replDefaults to customize the writer 2019-03-08 04:44:56 +01:00
streams benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
test src: replace heap_utils.createHeapSnapshot with v8.getHeapSnapshot 2019-03-19 01:04:51 +08:00
util util: prevent tampering with internals in inspect() 2019-03-13 19:28:56 +01:00
vm lib: save primordials during bootstrap and use it in builtins 2019-02-02 05:40:47 +08:00
worker worker: implement worker.moveMessagePortToContext() 2019-03-15 16:54:19 +01:00
assert.js assert: add internal assert.fail() 2019-02-14 00:00:50 +01:00
async_hooks.js src: forbid access to CLI options before bootstrapping is done 2019-03-09 14:03:02 +01:00
buffer.js buffer: move Buffer prototype wiring into internal/buffer.js 2019-01-10 16:59:27 +08:00
child_process.js child_process: ensure message sanity at source 2019-03-18 10:23:08 +05:30
cli_table.js lib,test: remove lib/internal/test/unicode.js 2019-01-03 10:25:59 -08:00
constants.js
dgram.js
dtrace.js lib: move DTRACE_* probes out of global scope 2019-03-12 14:19:36 +00:00
encoding.js lib: don't use util.inspect() internals 2019-02-28 17:49:10 +01:00
error-serdes.js worker: serialize errors if stack getter throws 2019-02-24 21:27:29 -08:00
errors.js module: do not share the internal require function with public loaders 2019-03-19 04:05:38 +08:00
fixed_queue.js
freelist.js async_hooks: add missing async_hooks destroys in AsyncReset 2018-10-10 08:45:56 +02:00
freeze_intrinsics.js bootstrap: experimental --frozen-intrinsics flag 2019-03-04 16:34:33 +02:00
http.js http,https: protect against slow headers attack 2018-11-28 11:36:34 +11:00
idna.js lib: convert legacy process.binding to internalBinding 2019-02-18 07:21:48 +01:00
inspector_async_hook.js process: register the inspector async hooks in bootstrap/node.js 2019-01-16 16:19:22 +08:00
js_stream_socket.js lib,test: improve faulty assert usage detection 2019-03-13 18:50:35 +01:00
linkedlist.js
net.js fs: make process.binding('fs') internal 2018-11-16 21:56:29 +09:00
options.js src: cache the result of GetOptions() in JS land 2018-11-07 20:40:38 -08:00
priority_queue.js timers: fix priority queue removeAt 2018-11-14 20:38:00 -08:00
profiler.js src: refactor coverage connection 2019-03-12 07:03:53 +08:00
querystring.js lib: move encodeStr function to internal for reusable 2018-11-20 18:24:02 -08:00
readline.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
readme.md
repl.js repl: add replDefaults to customize the writer 2019-03-08 04:44:56 +01:00
socket_list.js lib: convert to arrow function 2018-11-26 20:34:32 +05:30
stream_base_commons.js net: use kHandle symbol for accessing native handle 2019-03-10 00:46:54 +01:00
timers.js timers: remove dead code and simplify args check 2019-03-13 15:04:43 +01:00
tls.js
trace_events_async_hooks.js process: simplify the setup of async hooks trace events 2019-02-21 10:47:28 +08:00
tty.js tty: add hasColors function 2019-03-05 18:37:39 +01:00
url.js benchmark,doc,lib,test: capitalize comments 2019-02-28 18:31:10 +01:00
util.js inspector,vm: remove --eval wrapper 2019-02-03 20:40:16 +01:00
v8_prof_polyfill.js v8_prof_polyfill: remove unused catch bindings 2018-11-06 10:59:04 -05:00
v8_prof_processor.js lib: convert to Arrow Function 2018-11-28 14:59:07 +05:30
validators.js fs: improve mode validation 2019-03-15 17:38:12 +01:00
worker.js lib: explicitly initialize debuglog during bootstrap 2019-03-08 13:57:38 +01:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.