0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Joyee Cheung 263d13766f
src: initialize ICU version in per_process::metadata.versions
Instead of

- Initialize the ICU versions in JS land after consulting
  internalBinding('config').hasIntl
- Joining the version keys in C++
- Splitting the keys in JS and call into C++ again to get the value for
  each of the keys

Do:

- Guard the initialization code behind `NODE_HAVE_I18N_SUPPORT`
- Do the initialization in C++ right after ICU data is loaded
- Initialize each version directly using ICU functions/constants,
  and put them in per_process::metadata.versions. These will be
  copied into `process.versions` naturally later.
  This way, the initialization of the versions won't be called
  in worker threads again.

PR-URL: https://github.com/nodejs/node/pull/25115
Reviewed-By: Steven R Loomis <srloomis@us.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-12-21 07:46:47 +08:00
..
internal src: initialize ICU version in per_process::metadata.versions 2018-12-21 07:46:47 +08:00
_http_agent.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
_http_client.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
_http_common.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_http_incoming.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_http_outgoing.js tools: capitalize sentences 2018-12-10 17:07:18 +01:00
_http_server.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
_stream_duplex.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_stream_passthrough.js lib: use ES6 class inheritance style 2018-12-05 16:55:00 +01:00
_stream_readable.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_stream_transform.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_stream_wrap.js
_stream_writable.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_tls_common.js tls: add min/max protocol version options 2018-11-22 09:14:58 -08:00
_tls_wrap.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
.eslintrc.yaml lib: switch to object spread where possible 2018-12-20 13:14:46 +01:00
assert.js assert: remove unused catch bindings 2018-11-06 10:58:42 -05:00
async_hooks.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
buffer.js lib: remove internalBinding('config').pendingDeprecation 2018-12-14 21:22:59 -08:00
child_process.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
cluster.js
console.js console: split console into global.js and constructor.js 2018-12-02 04:51:18 +08:00
constants.js src,lib: move natives and constants to internalBinding() 2018-10-21 03:17:12 +02:00
crypto.js src,lib: make process.binding('config') internal 2018-12-05 11:47:05 -08:00
dgram.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
dns.js dns: simplify dns.promises warning logic 2018-12-04 11:32:45 -08:00
domain.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
events.js events: simplify stack compare function 2018-12-19 17:12:00 +01:00
fs.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
http2.js http2: order declarations in http2.js 2018-11-20 10:42:31 -08:00
http.js http: add maxHeaderSize property 2018-12-20 13:15:07 -05:00
https.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
inspector.js inspector: move process.binding to internalBinding 2018-12-13 05:30:51 +01:00
module.js
net.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
os.js os: move process.binding('os') to internalBinding 2018-12-20 05:29:16 +01:00
path.js path: replace assertPath() with validator 2018-12-06 19:57:11 -08:00
perf_hooks.js tools: enable no-useless-constructor lint rule 2018-12-16 20:30:50 -08:00
process.js
punycode.js
querystring.js querystring: remove eslint-disable 2018-12-14 13:13:43 -05:00
readline.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
repl.js lib: switch to object spread where possible 2018-12-20 13:14:46 +01:00
stream.js tools: lint for unused catch bindings 2018-11-06 10:59:27 -05:00
string_decoder.js bootstrapper: move internalBinding to NativeModule 2018-10-04 11:55:34 +02:00
sys.js
timers.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
tls.js lib: switch to object spread where possible 2018-12-20 13:14:46 +01:00
trace_events.js src,lib: make process.binding('config') internal 2018-12-05 11:47:05 -08:00
tty.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
url.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
util.js util: format() now formats bigint and booleans 2018-12-19 16:31:11 +01:00
v8.js tools: enable no-useless-constructor lint rule 2018-12-16 20:30:50 -08:00
vm.js lib: switch to object spread where possible 2018-12-20 13:14:46 +01:00
worker_threads.js
zlib.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00