node/lib/internal
Joyee Cheung 75741a1952 src: use v8::Isolate::GetDefaultLocale() to compute navigator.language
Using the Intl API to get the default locale slows down the startup
significantly. This patch uses a new v8 API to get the default locale
directly.

PR-URL: https://github.com/nodejs/node/pull/54279
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2024-08-29 03:25:51 +00:00
..
assert lib: optimize copyError with ObjectAssign in primordials 2024-07-25 12:12:35 +00:00
async_local_storage lib: improve async_context_frame structure 2024-08-09 19:44:42 +00:00
bootstrap process: port on-exit-leak-free to core 2024-07-11 17:57:20 +00:00
child_process tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
cluster lib: improve cluster/primary code 2024-07-21 22:23:17 +00:00
console console: use validateOneOf for colorMode validation 2024-08-10 01:49:40 +00:00
crypto crypto: remove ERR_CRYPTO_SCRYPT_INVALID_PARAMETER 2024-07-10 16:38:00 +00:00
debugger
dns lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
events lib: fix naming convention of Symbol 2024-06-10 14:56:14 +00:00
fs fs: refactor handleTimestampsAndMode to remove redundant call 2024-08-24 16:50:57 +00:00
http2 http2: remove prototype primordials 2024-07-05 06:20:12 +00:00
legacy tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
main test_runner: support running tests in process 2024-08-21 13:39:19 +00:00
modules src: add JS APIs for compile cache and NODE_DISABLE_COMPILE_CACHE 2024-08-28 23:22:57 +00:00
per_context tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
perf lib: add toJSON to PerformanceMeasure 2024-06-29 04:48:23 +00:00
process src: use v8::Isolate::GetDefaultLocale() to compute navigator.language 2024-08-29 03:25:51 +00:00
readline http, readline: replace sort with toSorted 2024-07-10 16:46:24 +00:00
repl repl: fix await object patterns without values 2024-06-07 01:24:32 +00:00
source_map lib: decorate async stack trace in source maps 2024-07-18 14:45:43 +00:00
streams lib: replace spread operator with primordials function 2024-08-12 07:05:39 +00:00
test v8: implement v8.queryObjects() for memory leak regression testing 2024-03-02 22:11:30 +00:00
test_runner test_runner: always make spec the default reporter 2024-08-27 15:22:16 +00:00
tls tls: fix negative sessionTimeout handling 2024-05-18 00:26:11 +00:00
util lib: fix emit warning for debuglog.time when disabled 2024-08-27 16:20:35 +00:00
v8 lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
vm vm: fix ASCII-betical order 2024-04-25 19:14:16 +00:00
watch_mode test_runner: handle file rename and deletion under watch mode 2024-06-02 08:11:30 +00:00
webstreams lib: fix unhandled errors in webstream adapters 2024-08-06 18:34:35 +00:00
worker worker: add postMessageToThread 2024-07-09 07:16:04 +00:00
abort_controller.js lib: use predefined variable instead of bit operation 2024-04-20 16:24:25 +00:00
assert.js
async_context_frame.js lib: improve async_context_frame structure 2024-08-09 19:44:42 +00:00
async_hooks.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
blob.js buffer: add JSDoc to blob bytes method 2024-08-05 00:29:07 +00:00
blocklist.js
buffer.js buffer: truncate instead of throw when writing beyond buffer 2024-08-27 08:48:52 +00:00
child_process.js child_process: remove unused internal event 2024-08-01 03:07:10 +00:00
cli_table.js
constants.js
dgram.js lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
encoding.js stream: implement min option for ReadableStreamBYOBReader.read 2024-01-04 12:57:14 +01:00
error_serdes.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
errors.js lib,src: drop --experimental-network-imports 2024-07-28 16:33:05 +00:00
event_target.js lib: fix naming convention of Symbol 2024-06-10 14:56:14 +00:00
file.js lib,src: replace toUSVString with toWellFormed() 2023-11-29 16:00:57 +00:00
fixed_queue.js
freelist.js
freeze_intrinsics.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
heap_utils.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
histogram.js lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
http.js src,lib: expose getCategoryEnabledBuffer to use on node.http 2024-07-16 18:40:22 +00:00
idna.js
inspector_async_hook.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
inspector_network_tracking.js inspector: support Network.loadingFailed event 2024-08-11 11:42:01 +00:00
js_stream_socket.js http2: fix h2-over-h2 connection proxying 2024-04-08 09:53:18 +00:00
linkedlist.js
mime.js util: pass invalidSubtypeIndex instead of trimmedSubtype to error 2023-12-25 04:29:00 +00:00
navigator.js src: use v8::Isolate::GetDefaultLocale() to compute navigator.language 2024-08-29 03:25:51 +00:00
net.js lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
options.js src: reduce unnecessary serialization of CLI options in C++ 2024-05-02 22:57:03 +00:00
priority_queue.js
promise_hooks.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
querystring.js
README.md lib, doc: rename readme.md to README.md 2024-04-14 10:30:31 +00:00
repl.js
socket_list.js
socketaddress.js
stream_base_commons.js http2: fix h2-over-h2 connection proxying 2024-04-08 09:53:18 +00:00
timers.js lib: improve async_context_frame structure 2024-08-09 19:44:42 +00:00
trace_events_async_hooks.js
tty.js
url.js url: modify pathToFileURL to handle extended UNC path 2024-08-12 14:48:39 +00:00
util.js lib: refactor platform utility methods 2024-07-15 18:58:11 +00:00
v8_prof_polyfill.js
v8_prof_processor.js
validators.js zlib: simplify validators 2024-08-27 14:58:36 +00:00
vm.js typings: lib/internal/vm.js 2024-02-19 01:19:44 +00:00
wasm_web_api.js
watchdog.js
webidl.js stream: treat compression web stream format per its WebIDL definition 2023-11-12 10:01:51 +00:00
webstorage.js src: move ToNamespacedPath call of webstorage 2024-07-21 20:49:10 +00:00
worker.js worker: add postMessageToThread 2024-07-09 07:16:04 +00: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.