node-linux-ppc64le 18.9.1 → 18.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +260 -0
- package/README.md +16 -19
- package/bin/node +0 -0
- package/include/node/common.gypi +3 -3
- package/include/node/config.gypi +164 -160
- package/include/node/node.h +99 -13
- package/include/node/node_version.h +2 -2
- package/package.json +1 -1
- package/share/man/man1/node.1 +4 -0
- package/share/systemtap/tapset/node.stp +146 -0
package/include/node/config.gypi
CHANGED
|
@@ -28,293 +28,297 @@
|
|
|
28
28
|
'node_fipsinstall': 'false',
|
|
29
29
|
'node_install_corepack': 'true',
|
|
30
30
|
'node_install_npm': 'true',
|
|
31
|
-
'node_library_files': [ 'lib/
|
|
32
|
-
'lib/
|
|
31
|
+
'node_library_files': [ 'lib/_http_agent.js',
|
|
32
|
+
'lib/_http_client.js',
|
|
33
|
+
'lib/_http_common.js',
|
|
34
|
+
'lib/_http_incoming.js',
|
|
35
|
+
'lib/_http_outgoing.js',
|
|
36
|
+
'lib/_http_server.js',
|
|
33
37
|
'lib/_stream_duplex.js',
|
|
34
38
|
'lib/_stream_passthrough.js',
|
|
35
39
|
'lib/_stream_readable.js',
|
|
36
40
|
'lib/_stream_transform.js',
|
|
37
41
|
'lib/_stream_wrap.js',
|
|
38
42
|
'lib/_stream_writable.js',
|
|
39
|
-
'lib/
|
|
40
|
-
'lib/
|
|
43
|
+
'lib/_tls_common.js',
|
|
44
|
+
'lib/_tls_wrap.js',
|
|
45
|
+
'lib/assert.js',
|
|
46
|
+
'lib/assert/strict.js',
|
|
47
|
+
'lib/async_hooks.js',
|
|
48
|
+
'lib/buffer.js',
|
|
49
|
+
'lib/child_process.js',
|
|
41
50
|
'lib/cluster.js',
|
|
42
51
|
'lib/console.js',
|
|
43
52
|
'lib/constants.js',
|
|
44
|
-
'lib/
|
|
45
|
-
'lib/util.js',
|
|
46
|
-
'lib/_http_agent.js',
|
|
47
|
-
'lib/http2.js',
|
|
48
|
-
'lib/module.js',
|
|
49
|
-
'lib/path.js',
|
|
50
|
-
'lib/punycode.js',
|
|
51
|
-
'lib/querystring.js',
|
|
52
|
-
'lib/sys.js',
|
|
53
|
-
'lib/trace_events.js',
|
|
54
|
-
'lib/url.js',
|
|
55
|
-
'lib/v8.js',
|
|
56
|
-
'lib/worker_threads.js',
|
|
57
|
-
'lib/tls.js',
|
|
58
|
-
'lib/child_process.js',
|
|
59
|
-
'lib/fs.js',
|
|
60
|
-
'lib/os.js',
|
|
61
|
-
'lib/repl.js',
|
|
62
|
-
'lib/test.js',
|
|
63
|
-
'lib/_http_incoming.js',
|
|
64
|
-
'lib/wasi.js',
|
|
65
|
-
'lib/events.js',
|
|
53
|
+
'lib/crypto.js',
|
|
66
54
|
'lib/dgram.js',
|
|
67
|
-
'lib/
|
|
55
|
+
'lib/diagnostics_channel.js',
|
|
56
|
+
'lib/dns.js',
|
|
57
|
+
'lib/dns/promises.js',
|
|
68
58
|
'lib/domain.js',
|
|
59
|
+
'lib/events.js',
|
|
60
|
+
'lib/fs.js',
|
|
61
|
+
'lib/fs/promises.js',
|
|
69
62
|
'lib/http.js',
|
|
70
|
-
'lib/
|
|
71
|
-
'lib/crypto.js',
|
|
72
|
-
'lib/dns.js',
|
|
73
|
-
'lib/stream.js',
|
|
74
|
-
'lib/string_decoder.js',
|
|
75
|
-
'lib/timers.js',
|
|
76
|
-
'lib/zlib.js',
|
|
77
|
-
'lib/buffer.js',
|
|
78
|
-
'lib/_http_common.js',
|
|
79
|
-
'lib/process.js',
|
|
80
|
-
'lib/assert.js',
|
|
81
|
-
'lib/async_hooks.js',
|
|
82
|
-
'lib/vm.js',
|
|
83
|
-
'lib/_http_client.js',
|
|
84
|
-
'lib/_tls_common.js',
|
|
63
|
+
'lib/http2.js',
|
|
85
64
|
'lib/https.js',
|
|
86
65
|
'lib/inspector.js',
|
|
87
|
-
'lib/readline.js',
|
|
88
|
-
'lib/assert/strict.js',
|
|
89
|
-
'lib/dns/promises.js',
|
|
90
|
-
'lib/fs/promises.js',
|
|
91
|
-
'lib/internal/assert.js',
|
|
92
|
-
'lib/internal/blocklist.js',
|
|
93
|
-
'lib/internal/buffer.js',
|
|
94
|
-
'lib/internal/cli_table.js',
|
|
95
|
-
'lib/internal/constants.js',
|
|
96
|
-
'lib/internal/dgram.js',
|
|
97
|
-
'lib/internal/fixed_queue.js',
|
|
98
|
-
'lib/internal/socketaddress.js',
|
|
99
|
-
'lib/internal/freelist.js',
|
|
100
|
-
'lib/internal/heap_utils.js',
|
|
101
|
-
'lib/internal/idna.js',
|
|
102
|
-
'lib/internal/inspector_async_hook.js',
|
|
103
|
-
'lib/internal/js_stream_socket.js',
|
|
104
|
-
'lib/internal/linkedlist.js',
|
|
105
|
-
'lib/internal/options.js',
|
|
106
|
-
'lib/internal/querystring.js',
|
|
107
|
-
'lib/internal/repl.js',
|
|
108
|
-
'lib/internal/socket_list.js',
|
|
109
|
-
'lib/internal/stream_base_commons.js',
|
|
110
|
-
'lib/internal/structured_clone.js',
|
|
111
|
-
'lib/internal/timers.js',
|
|
112
|
-
'lib/internal/trace_events_async_hooks.js',
|
|
113
|
-
'lib/internal/v8_prof_polyfill.js',
|
|
114
|
-
'lib/internal/v8_prof_processor.js',
|
|
115
|
-
'lib/internal/watchdog.js',
|
|
116
|
-
'lib/internal/http.js',
|
|
117
|
-
'lib/internal/util.js',
|
|
118
|
-
'lib/internal/async_hooks.js',
|
|
119
|
-
'lib/internal/error_serdes.js',
|
|
120
|
-
'lib/internal/child_process.js',
|
|
121
|
-
'lib/internal/dtrace.js',
|
|
122
|
-
'lib/internal/errors.js',
|
|
123
|
-
'lib/internal/encoding.js',
|
|
124
|
-
'lib/internal/histogram.js',
|
|
125
|
-
'lib/internal/promise_hooks.js',
|
|
126
66
|
'lib/internal/abort_controller.js',
|
|
127
|
-
'lib/internal/
|
|
128
|
-
'lib/internal/
|
|
129
|
-
'lib/internal/tty.js',
|
|
130
|
-
'lib/internal/wasm_web_api.js',
|
|
131
|
-
'lib/internal/event_target.js',
|
|
132
|
-
'lib/internal/url.js',
|
|
133
|
-
'lib/internal/worker.js',
|
|
134
|
-
'lib/internal/priority_queue.js',
|
|
135
|
-
'lib/internal/net.js',
|
|
136
|
-
'lib/internal/validators.js',
|
|
67
|
+
'lib/internal/assert.js',
|
|
68
|
+
'lib/internal/assert/assertion_error.js',
|
|
137
69
|
'lib/internal/assert/calltracker.js',
|
|
138
70
|
'lib/internal/assert/snapshot.js',
|
|
139
|
-
'lib/internal/
|
|
140
|
-
'lib/internal/
|
|
71
|
+
'lib/internal/async_hooks.js',
|
|
72
|
+
'lib/internal/blob.js',
|
|
73
|
+
'lib/internal/blocklist.js',
|
|
141
74
|
'lib/internal/bootstrap/browser.js',
|
|
75
|
+
'lib/internal/bootstrap/loaders.js',
|
|
142
76
|
'lib/internal/bootstrap/node.js',
|
|
143
77
|
'lib/internal/bootstrap/switches/does_not_own_process_state.js',
|
|
144
78
|
'lib/internal/bootstrap/switches/does_own_process_state.js',
|
|
145
|
-
'lib/internal/bootstrap/switches/is_not_main_thread.js',
|
|
146
79
|
'lib/internal/bootstrap/switches/is_main_thread.js',
|
|
80
|
+
'lib/internal/bootstrap/switches/is_not_main_thread.js',
|
|
81
|
+
'lib/internal/buffer.js',
|
|
82
|
+
'lib/internal/child_process.js',
|
|
147
83
|
'lib/internal/child_process/serialization.js',
|
|
84
|
+
'lib/internal/cli_table.js',
|
|
85
|
+
'lib/internal/cluster/child.js',
|
|
86
|
+
'lib/internal/cluster/primary.js',
|
|
87
|
+
'lib/internal/cluster/round_robin_handle.js',
|
|
148
88
|
'lib/internal/cluster/shared_handle.js',
|
|
149
89
|
'lib/internal/cluster/utils.js',
|
|
150
90
|
'lib/internal/cluster/worker.js',
|
|
151
|
-
'lib/internal/cluster/child.js',
|
|
152
|
-
'lib/internal/cluster/round_robin_handle.js',
|
|
153
|
-
'lib/internal/cluster/primary.js',
|
|
154
|
-
'lib/internal/console/global.js',
|
|
155
91
|
'lib/internal/console/constructor.js',
|
|
92
|
+
'lib/internal/console/global.js',
|
|
93
|
+
'lib/internal/constants.js',
|
|
94
|
+
'lib/internal/crypto/aes.js',
|
|
156
95
|
'lib/internal/crypto/certificate.js',
|
|
96
|
+
'lib/internal/crypto/cfrg.js',
|
|
157
97
|
'lib/internal/crypto/cipher.js',
|
|
158
|
-
'lib/internal/crypto/sig.js',
|
|
159
|
-
'lib/internal/crypto/hashnames.js',
|
|
160
|
-
'lib/internal/crypto/random.js',
|
|
161
|
-
'lib/internal/crypto/scrypt.js',
|
|
162
|
-
'lib/internal/crypto/x509.js',
|
|
163
98
|
'lib/internal/crypto/diffiehellman.js',
|
|
164
|
-
'lib/internal/crypto/hash.js',
|
|
165
|
-
'lib/internal/crypto/aes.js',
|
|
166
|
-
'lib/internal/crypto/cfrg.js',
|
|
167
99
|
'lib/internal/crypto/ec.js',
|
|
100
|
+
'lib/internal/crypto/hash.js',
|
|
101
|
+
'lib/internal/crypto/hashnames.js',
|
|
168
102
|
'lib/internal/crypto/hkdf.js',
|
|
169
|
-
'lib/internal/crypto/mac.js',
|
|
170
|
-
'lib/internal/crypto/rsa.js',
|
|
171
|
-
'lib/internal/crypto/util.js',
|
|
172
103
|
'lib/internal/crypto/keygen.js',
|
|
173
104
|
'lib/internal/crypto/keys.js',
|
|
105
|
+
'lib/internal/crypto/mac.js',
|
|
174
106
|
'lib/internal/crypto/pbkdf2.js',
|
|
107
|
+
'lib/internal/crypto/random.js',
|
|
108
|
+
'lib/internal/crypto/rsa.js',
|
|
109
|
+
'lib/internal/crypto/scrypt.js',
|
|
110
|
+
'lib/internal/crypto/sig.js',
|
|
111
|
+
'lib/internal/crypto/util.js',
|
|
175
112
|
'lib/internal/crypto/webcrypto.js',
|
|
176
|
-
'lib/internal/
|
|
113
|
+
'lib/internal/crypto/x509.js',
|
|
177
114
|
'lib/internal/debugger/inspect.js',
|
|
115
|
+
'lib/internal/debugger/inspect_client.js',
|
|
178
116
|
'lib/internal/debugger/inspect_repl.js',
|
|
117
|
+
'lib/internal/dgram.js',
|
|
118
|
+
'lib/internal/dns/callback_resolver.js',
|
|
179
119
|
'lib/internal/dns/promises.js',
|
|
180
120
|
'lib/internal/dns/utils.js',
|
|
121
|
+
'lib/internal/dtrace.js',
|
|
122
|
+
'lib/internal/encoding.js',
|
|
123
|
+
'lib/internal/error_serdes.js',
|
|
124
|
+
'lib/internal/errors.js',
|
|
125
|
+
'lib/internal/event_target.js',
|
|
126
|
+
'lib/internal/fixed_queue.js',
|
|
127
|
+
'lib/internal/freelist.js',
|
|
128
|
+
'lib/internal/freeze_intrinsics.js',
|
|
129
|
+
'lib/internal/fs/cp/cp-sync.js',
|
|
130
|
+
'lib/internal/fs/cp/cp.js',
|
|
131
|
+
'lib/internal/fs/dir.js',
|
|
132
|
+
'lib/internal/fs/promises.js',
|
|
181
133
|
'lib/internal/fs/read_file_context.js',
|
|
182
134
|
'lib/internal/fs/rimraf.js',
|
|
183
|
-
'lib/internal/fs/dir.js',
|
|
184
|
-
'lib/internal/fs/watchers.js',
|
|
185
135
|
'lib/internal/fs/streams.js',
|
|
186
136
|
'lib/internal/fs/sync_write_stream.js',
|
|
187
|
-
'lib/internal/fs/promises.js',
|
|
188
137
|
'lib/internal/fs/utils.js',
|
|
189
|
-
'lib/internal/fs/
|
|
190
|
-
'lib/internal/
|
|
191
|
-
'lib/internal/
|
|
138
|
+
'lib/internal/fs/watchers.js',
|
|
139
|
+
'lib/internal/heap_utils.js',
|
|
140
|
+
'lib/internal/histogram.js',
|
|
141
|
+
'lib/internal/http.js',
|
|
192
142
|
'lib/internal/http2/compat.js',
|
|
193
143
|
'lib/internal/http2/core.js',
|
|
144
|
+
'lib/internal/http2/util.js',
|
|
145
|
+
'lib/internal/idna.js',
|
|
146
|
+
'lib/internal/inspector_async_hook.js',
|
|
147
|
+
'lib/internal/js_stream_socket.js',
|
|
194
148
|
'lib/internal/legacy/processbinding.js',
|
|
149
|
+
'lib/internal/linkedlist.js',
|
|
150
|
+
'lib/internal/main/check_syntax.js',
|
|
195
151
|
'lib/internal/main/environment.js',
|
|
152
|
+
'lib/internal/main/eval_stdin.js',
|
|
153
|
+
'lib/internal/main/eval_string.js',
|
|
196
154
|
'lib/internal/main/inspect.js',
|
|
155
|
+
'lib/internal/main/mksnapshot.js',
|
|
197
156
|
'lib/internal/main/print_help.js',
|
|
198
157
|
'lib/internal/main/prof_process.js',
|
|
199
158
|
'lib/internal/main/repl.js',
|
|
200
|
-
'lib/internal/main/check_syntax.js',
|
|
201
|
-
'lib/internal/main/eval_stdin.js',
|
|
202
|
-
'lib/internal/main/eval_string.js',
|
|
203
|
-
'lib/internal/main/mksnapshot.js',
|
|
204
159
|
'lib/internal/main/run_main_module.js',
|
|
205
160
|
'lib/internal/main/test_runner.js',
|
|
161
|
+
'lib/internal/main/watch_mode.js',
|
|
206
162
|
'lib/internal/main/worker_thread.js',
|
|
207
|
-
'lib/internal/modules/package_json_reader.js',
|
|
208
|
-
'lib/internal/modules/run_main.js',
|
|
209
163
|
'lib/internal/modules/cjs/helpers.js',
|
|
210
164
|
'lib/internal/modules/cjs/loader.js',
|
|
211
165
|
'lib/internal/modules/esm/assert.js',
|
|
212
166
|
'lib/internal/modules/esm/create_dynamic_module.js',
|
|
213
|
-
'lib/internal/modules/esm/
|
|
214
|
-
'lib/internal/modules/esm/module_map.js',
|
|
167
|
+
'lib/internal/modules/esm/fetch_module.js',
|
|
215
168
|
'lib/internal/modules/esm/formats.js',
|
|
169
|
+
'lib/internal/modules/esm/get_format.js',
|
|
170
|
+
'lib/internal/modules/esm/handle_process_exit.js',
|
|
216
171
|
'lib/internal/modules/esm/initialize_import_meta.js',
|
|
217
172
|
'lib/internal/modules/esm/load.js',
|
|
218
|
-
'lib/internal/modules/esm/
|
|
173
|
+
'lib/internal/modules/esm/loader.js',
|
|
219
174
|
'lib/internal/modules/esm/module_job.js',
|
|
175
|
+
'lib/internal/modules/esm/module_map.js',
|
|
220
176
|
'lib/internal/modules/esm/package_config.js',
|
|
221
|
-
'lib/internal/modules/esm/get_format.js',
|
|
222
|
-
'lib/internal/modules/esm/loader.js',
|
|
223
177
|
'lib/internal/modules/esm/resolve.js',
|
|
224
178
|
'lib/internal/modules/esm/translators.js',
|
|
225
|
-
'lib/internal/
|
|
179
|
+
'lib/internal/modules/package_json_reader.js',
|
|
180
|
+
'lib/internal/modules/run_main.js',
|
|
181
|
+
'lib/internal/net.js',
|
|
182
|
+
'lib/internal/options.js',
|
|
226
183
|
'lib/internal/per_context/domexception.js',
|
|
184
|
+
'lib/internal/per_context/messageport.js',
|
|
227
185
|
'lib/internal/per_context/primordials.js',
|
|
228
|
-
'lib/internal/perf/performance_entry.js',
|
|
229
|
-
'lib/internal/perf/utils.js',
|
|
230
|
-
'lib/internal/perf/nodetiming.js',
|
|
231
186
|
'lib/internal/perf/event_loop_delay.js',
|
|
232
|
-
'lib/internal/perf/
|
|
187
|
+
'lib/internal/perf/event_loop_utilization.js',
|
|
188
|
+
'lib/internal/perf/nodetiming.js',
|
|
233
189
|
'lib/internal/perf/observe.js',
|
|
190
|
+
'lib/internal/perf/performance.js',
|
|
191
|
+
'lib/internal/perf/performance_entry.js',
|
|
234
192
|
'lib/internal/perf/resource_timing.js',
|
|
193
|
+
'lib/internal/perf/timerify.js',
|
|
235
194
|
'lib/internal/perf/usertiming.js',
|
|
236
|
-
'lib/internal/perf/
|
|
237
|
-
'lib/internal/perf/performance.js',
|
|
195
|
+
'lib/internal/perf/utils.js',
|
|
238
196
|
'lib/internal/policy/manifest.js',
|
|
239
197
|
'lib/internal/policy/sri.js',
|
|
198
|
+
'lib/internal/priority_queue.js',
|
|
199
|
+
'lib/internal/process/esm_loader.js',
|
|
200
|
+
'lib/internal/process/execution.js',
|
|
201
|
+
'lib/internal/process/per_thread.js',
|
|
240
202
|
'lib/internal/process/policy.js',
|
|
203
|
+
'lib/internal/process/pre_execution.js',
|
|
204
|
+
'lib/internal/process/promises.js',
|
|
241
205
|
'lib/internal/process/report.js',
|
|
242
206
|
'lib/internal/process/signal.js',
|
|
243
207
|
'lib/internal/process/task_queues.js',
|
|
244
|
-
'lib/internal/process/worker_thread_only.js',
|
|
245
|
-
'lib/internal/process/promises.js',
|
|
246
|
-
'lib/internal/process/per_thread.js',
|
|
247
208
|
'lib/internal/process/warning.js',
|
|
248
|
-
'lib/internal/process/
|
|
249
|
-
'lib/internal/
|
|
250
|
-
'lib/internal/
|
|
209
|
+
'lib/internal/process/worker_thread_only.js',
|
|
210
|
+
'lib/internal/promise_hooks.js',
|
|
211
|
+
'lib/internal/querystring.js',
|
|
251
212
|
'lib/internal/readline/callbacks.js',
|
|
252
213
|
'lib/internal/readline/emitKeypressEvents.js',
|
|
214
|
+
'lib/internal/readline/interface.js',
|
|
253
215
|
'lib/internal/readline/promises.js',
|
|
254
216
|
'lib/internal/readline/utils.js',
|
|
255
|
-
'lib/internal/
|
|
217
|
+
'lib/internal/repl.js',
|
|
218
|
+
'lib/internal/repl/await.js',
|
|
256
219
|
'lib/internal/repl/history.js',
|
|
257
220
|
'lib/internal/repl/utils.js',
|
|
258
|
-
'lib/internal/
|
|
259
|
-
'lib/internal/
|
|
221
|
+
'lib/internal/socket_list.js',
|
|
222
|
+
'lib/internal/socketaddress.js',
|
|
260
223
|
'lib/internal/source_map/prepare_stack_trace.js',
|
|
224
|
+
'lib/internal/source_map/source_map.js',
|
|
261
225
|
'lib/internal/source_map/source_map_cache.js',
|
|
226
|
+
'lib/internal/stream_base_commons.js',
|
|
262
227
|
'lib/internal/streams/add-abort-signal.js',
|
|
263
228
|
'lib/internal/streams/buffer_list.js',
|
|
264
229
|
'lib/internal/streams/compose.js',
|
|
230
|
+
'lib/internal/streams/destroy.js',
|
|
231
|
+
'lib/internal/streams/duplex.js',
|
|
265
232
|
'lib/internal/streams/duplexify.js',
|
|
233
|
+
'lib/internal/streams/end-of-stream.js',
|
|
266
234
|
'lib/internal/streams/from.js',
|
|
235
|
+
'lib/internal/streams/lazy_transform.js',
|
|
267
236
|
'lib/internal/streams/legacy.js',
|
|
237
|
+
'lib/internal/streams/operators.js',
|
|
268
238
|
'lib/internal/streams/passthrough.js',
|
|
269
|
-
'lib/internal/streams/state.js',
|
|
270
|
-
'lib/internal/streams/utils.js',
|
|
271
|
-
'lib/internal/streams/duplex.js',
|
|
272
|
-
'lib/internal/streams/lazy_transform.js',
|
|
273
|
-
'lib/internal/streams/end-of-stream.js',
|
|
274
239
|
'lib/internal/streams/pipeline.js',
|
|
275
240
|
'lib/internal/streams/readable.js',
|
|
241
|
+
'lib/internal/streams/state.js',
|
|
276
242
|
'lib/internal/streams/transform.js',
|
|
277
|
-
'lib/internal/streams/
|
|
278
|
-
'lib/internal/streams/destroy.js',
|
|
243
|
+
'lib/internal/streams/utils.js',
|
|
279
244
|
'lib/internal/streams/writable.js',
|
|
245
|
+
'lib/internal/structured_clone.js',
|
|
280
246
|
'lib/internal/test/binding.js',
|
|
281
247
|
'lib/internal/test/transfer.js',
|
|
282
|
-
'lib/internal/test_runner/utils.js',
|
|
283
248
|
'lib/internal/test_runner/harness.js',
|
|
284
249
|
'lib/internal/test_runner/runner.js',
|
|
285
250
|
'lib/internal/test_runner/tap_stream.js',
|
|
286
251
|
'lib/internal/test_runner/test.js',
|
|
287
|
-
'lib/internal/
|
|
252
|
+
'lib/internal/test_runner/utils.js',
|
|
253
|
+
'lib/internal/timers.js',
|
|
288
254
|
'lib/internal/tls/secure-context.js',
|
|
255
|
+
'lib/internal/tls/secure-pair.js',
|
|
256
|
+
'lib/internal/trace_events_async_hooks.js',
|
|
257
|
+
'lib/internal/tty.js',
|
|
258
|
+
'lib/internal/url.js',
|
|
259
|
+
'lib/internal/util.js',
|
|
260
|
+
'lib/internal/util/colors.js',
|
|
289
261
|
'lib/internal/util/comparisons.js',
|
|
290
|
-
'lib/internal/util/iterable_weak_map.js',
|
|
291
262
|
'lib/internal/util/debuglog.js',
|
|
292
|
-
'lib/internal/util/types.js',
|
|
293
263
|
'lib/internal/util/inspect.js',
|
|
294
264
|
'lib/internal/util/inspector.js',
|
|
295
|
-
'lib/internal/util/
|
|
265
|
+
'lib/internal/util/iterable_weak_map.js',
|
|
296
266
|
'lib/internal/util/parse_args/parse_args.js',
|
|
267
|
+
'lib/internal/util/parse_args/utils.js',
|
|
268
|
+
'lib/internal/util/types.js',
|
|
269
|
+
'lib/internal/v8/startup_snapshot.js',
|
|
270
|
+
'lib/internal/v8_prof_polyfill.js',
|
|
271
|
+
'lib/internal/v8_prof_processor.js',
|
|
272
|
+
'lib/internal/validators.js',
|
|
297
273
|
'lib/internal/vm/module.js',
|
|
274
|
+
'lib/internal/wasm_web_api.js',
|
|
275
|
+
'lib/internal/watch_mode/files_watcher.js',
|
|
276
|
+
'lib/internal/watchdog.js',
|
|
277
|
+
'lib/internal/webstreams/adapters.js',
|
|
298
278
|
'lib/internal/webstreams/compression.js',
|
|
279
|
+
'lib/internal/webstreams/encoding.js',
|
|
299
280
|
'lib/internal/webstreams/queuingstrategies.js',
|
|
281
|
+
'lib/internal/webstreams/readablestream.js',
|
|
300
282
|
'lib/internal/webstreams/transfer.js',
|
|
301
|
-
'lib/internal/webstreams/encoding.js',
|
|
302
|
-
'lib/internal/webstreams/adapters.js',
|
|
303
283
|
'lib/internal/webstreams/transformstream.js',
|
|
304
|
-
'lib/internal/webstreams/readablestream.js',
|
|
305
284
|
'lib/internal/webstreams/util.js',
|
|
306
285
|
'lib/internal/webstreams/writablestream.js',
|
|
286
|
+
'lib/internal/worker.js',
|
|
307
287
|
'lib/internal/worker/io.js',
|
|
308
288
|
'lib/internal/worker/js_transferable.js',
|
|
309
|
-
'lib/
|
|
289
|
+
'lib/module.js',
|
|
290
|
+
'lib/net.js',
|
|
291
|
+
'lib/os.js',
|
|
292
|
+
'lib/path.js',
|
|
310
293
|
'lib/path/posix.js',
|
|
311
294
|
'lib/path/win32.js',
|
|
295
|
+
'lib/perf_hooks.js',
|
|
296
|
+
'lib/process.js',
|
|
297
|
+
'lib/punycode.js',
|
|
298
|
+
'lib/querystring.js',
|
|
299
|
+
'lib/readline.js',
|
|
312
300
|
'lib/readline/promises.js',
|
|
301
|
+
'lib/repl.js',
|
|
302
|
+
'lib/stream.js',
|
|
313
303
|
'lib/stream/consumers.js',
|
|
314
304
|
'lib/stream/promises.js',
|
|
315
305
|
'lib/stream/web.js',
|
|
306
|
+
'lib/string_decoder.js',
|
|
307
|
+
'lib/sys.js',
|
|
308
|
+
'lib/test.js',
|
|
309
|
+
'lib/timers.js',
|
|
316
310
|
'lib/timers/promises.js',
|
|
317
|
-
'lib/
|
|
311
|
+
'lib/tls.js',
|
|
312
|
+
'lib/trace_events.js',
|
|
313
|
+
'lib/tty.js',
|
|
314
|
+
'lib/url.js',
|
|
315
|
+
'lib/util.js',
|
|
316
|
+
'lib/util/types.js',
|
|
317
|
+
'lib/v8.js',
|
|
318
|
+
'lib/vm.js',
|
|
319
|
+
'lib/wasi.js',
|
|
320
|
+
'lib/worker_threads.js',
|
|
321
|
+
'lib/zlib.js'],
|
|
318
322
|
'node_module_version': 108,
|
|
319
323
|
'node_no_browser_globals': 'false',
|
|
320
324
|
'node_prefix': '/',
|
package/include/node/node.h
CHANGED
|
@@ -224,11 +224,14 @@ namespace node {
|
|
|
224
224
|
|
|
225
225
|
class IsolateData;
|
|
226
226
|
class Environment;
|
|
227
|
+
class MultiIsolatePlatform;
|
|
228
|
+
class InitializationResultImpl;
|
|
227
229
|
|
|
228
230
|
namespace ProcessFlags {
|
|
229
231
|
enum Flags : uint64_t {
|
|
230
232
|
kNoFlags = 0,
|
|
231
233
|
// Enable stdio inheritance, which is disabled by default.
|
|
234
|
+
// This flag is also implied by kNoStdioInitialization.
|
|
232
235
|
kEnableStdioInheritance = 1 << 0,
|
|
233
236
|
// Disable reading the NODE_OPTIONS environment variable.
|
|
234
237
|
kDisableNodeOptionsEnv = 1 << 1,
|
|
@@ -236,8 +239,67 @@ enum Flags : uint64_t {
|
|
|
236
239
|
kDisableCLIOptions = 1 << 2,
|
|
237
240
|
// Do not initialize ICU.
|
|
238
241
|
kNoICU = 1 << 3,
|
|
242
|
+
// Do not modify stdio file descriptor or TTY state.
|
|
243
|
+
kNoStdioInitialization = 1 << 4,
|
|
244
|
+
// Do not register Node.js-specific signal handlers
|
|
245
|
+
// and reset other signal handlers to default state.
|
|
246
|
+
kNoDefaultSignalHandling = 1 << 5,
|
|
247
|
+
// Do not perform V8 initialization.
|
|
248
|
+
kNoInitializeV8 = 1 << 6,
|
|
249
|
+
// Do not initialize a default Node.js-provided V8 platform instance.
|
|
250
|
+
kNoInitializeNodeV8Platform = 1 << 7,
|
|
251
|
+
// Do not initialize OpenSSL config.
|
|
252
|
+
kNoInitOpenSSL = 1 << 8,
|
|
253
|
+
// Do not initialize Node.js debugging based on environment variables.
|
|
254
|
+
kNoParseGlobalDebugVariables = 1 << 9,
|
|
255
|
+
// Do not adjust OS resource limits for this process.
|
|
256
|
+
kNoAdjustResourceLimits = 1 << 10,
|
|
257
|
+
// Do not map code segments into large pages for this process.
|
|
258
|
+
kNoUseLargePages = 1 << 11,
|
|
259
|
+
// Skip printing output for --help, --version, --v8-options.
|
|
260
|
+
kNoPrintHelpOrVersionOutput = 1 << 12,
|
|
261
|
+
|
|
262
|
+
// Emulate the behavior of InitializeNodeWithArgs() when passing
|
|
263
|
+
// a flags argument to the InitializeOncePerProcess() replacement
|
|
264
|
+
// function.
|
|
265
|
+
kLegacyInitializeNodeWithArgsBehavior =
|
|
266
|
+
kNoStdioInitialization | kNoDefaultSignalHandling | kNoInitializeV8 |
|
|
267
|
+
kNoInitializeNodeV8Platform | kNoInitOpenSSL |
|
|
268
|
+
kNoParseGlobalDebugVariables | kNoAdjustResourceLimits |
|
|
269
|
+
kNoUseLargePages | kNoPrintHelpOrVersionOutput,
|
|
239
270
|
};
|
|
240
271
|
} // namespace ProcessFlags
|
|
272
|
+
// TODO(addaleax): Make this the canonical name, as it is more descriptive.
|
|
273
|
+
namespace ProcessInitializationFlags = ProcessFlags;
|
|
274
|
+
|
|
275
|
+
class NODE_EXTERN InitializationResult {
|
|
276
|
+
public:
|
|
277
|
+
virtual ~InitializationResult();
|
|
278
|
+
|
|
279
|
+
// Returns a suggested process exit code.
|
|
280
|
+
virtual int exit_code() const = 0;
|
|
281
|
+
|
|
282
|
+
// Returns 'true' if initialization was aborted early due to errors.
|
|
283
|
+
virtual bool early_return() const = 0;
|
|
284
|
+
|
|
285
|
+
// Returns the parsed list of non-Node.js arguments.
|
|
286
|
+
virtual const std::vector<std::string>& args() const = 0;
|
|
287
|
+
|
|
288
|
+
// Returns the parsed list of Node.js arguments.
|
|
289
|
+
virtual const std::vector<std::string>& exec_args() const = 0;
|
|
290
|
+
|
|
291
|
+
// Returns an array of errors. Note that these may be warnings
|
|
292
|
+
// whose existence does not imply a non-zero exit code.
|
|
293
|
+
virtual const std::vector<std::string>& errors() const = 0;
|
|
294
|
+
|
|
295
|
+
// If kNoInitializeNodeV8Platform was not specified, the global Node.js
|
|
296
|
+
// platform instance.
|
|
297
|
+
virtual MultiIsolatePlatform* platform() const = 0;
|
|
298
|
+
|
|
299
|
+
private:
|
|
300
|
+
InitializationResult() = default;
|
|
301
|
+
friend class InitializationResultImpl;
|
|
302
|
+
};
|
|
241
303
|
|
|
242
304
|
// TODO(addaleax): Officially deprecate this and replace it with something
|
|
243
305
|
// better suited for a public embedder API.
|
|
@@ -247,20 +309,44 @@ NODE_EXTERN int Start(int argc, char* argv[]);
|
|
|
247
309
|
// in the loop and / or actively executing JavaScript code).
|
|
248
310
|
NODE_EXTERN int Stop(Environment* env);
|
|
249
311
|
|
|
312
|
+
// This runs a subset of the initialization performed by
|
|
313
|
+
// InitializeOncePerProcess(), which supersedes this function.
|
|
314
|
+
// The subset is roughly equivalent to the one given by
|
|
315
|
+
// `ProcessInitializationFlags::kLegacyInitializeNodeWithArgsBehavior`.
|
|
316
|
+
NODE_DEPRECATED("Use InitializeOncePerProcess() instead",
|
|
317
|
+
NODE_EXTERN int InitializeNodeWithArgs(
|
|
318
|
+
std::vector<std::string>* argv,
|
|
319
|
+
std::vector<std::string>* exec_argv,
|
|
320
|
+
std::vector<std::string>* errors,
|
|
321
|
+
ProcessInitializationFlags::Flags flags));
|
|
322
|
+
NODE_DEPRECATED("Use InitializeOncePerProcess() instead",
|
|
323
|
+
NODE_EXTERN int InitializeNodeWithArgs(
|
|
324
|
+
std::vector<std::string>* argv,
|
|
325
|
+
std::vector<std::string>* exec_argv,
|
|
326
|
+
std::vector<std::string>* errors));
|
|
327
|
+
|
|
250
328
|
// Set up per-process state needed to run Node.js. This will consume arguments
|
|
251
|
-
// from
|
|
252
|
-
// the arguments
|
|
253
|
-
//
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
std::vector<std::string
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
329
|
+
// from args, and return information about the initialization success,
|
|
330
|
+
// including the arguments split into argv/exec_argv, a list of potential
|
|
331
|
+
// errors encountered during initialization, and a potential suggested
|
|
332
|
+
// exit code.
|
|
333
|
+
NODE_EXTERN std::unique_ptr<InitializationResult> InitializeOncePerProcess(
|
|
334
|
+
const std::vector<std::string>& args,
|
|
335
|
+
ProcessInitializationFlags::Flags flags =
|
|
336
|
+
ProcessInitializationFlags::kNoFlags);
|
|
337
|
+
// Undoes the initialization performed by InitializeOncePerProcess(),
|
|
338
|
+
// where cleanup is necessary.
|
|
339
|
+
NODE_EXTERN void TearDownOncePerProcess();
|
|
340
|
+
// Convenience overload for specifying multiple flags without having
|
|
341
|
+
// to worry about casts.
|
|
342
|
+
inline std::unique_ptr<InitializationResult> InitializeOncePerProcess(
|
|
343
|
+
const std::vector<std::string>& args,
|
|
344
|
+
std::initializer_list<ProcessInitializationFlags::Flags> list) {
|
|
345
|
+
uint64_t flags_accum = ProcessInitializationFlags::kNoFlags;
|
|
346
|
+
for (const auto flag : list) flags_accum |= static_cast<uint64_t>(flag);
|
|
347
|
+
return InitializeOncePerProcess(
|
|
348
|
+
args, static_cast<ProcessInitializationFlags::Flags>(flags_accum));
|
|
349
|
+
}
|
|
264
350
|
|
|
265
351
|
enum OptionEnvvarSettings {
|
|
266
352
|
kAllowedInEnvironment,
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
#define SRC_NODE_VERSION_H_
|
|
24
24
|
|
|
25
25
|
#define NODE_MAJOR_VERSION 18
|
|
26
|
-
#define NODE_MINOR_VERSION
|
|
27
|
-
#define NODE_PATCH_VERSION
|
|
26
|
+
#define NODE_MINOR_VERSION 11
|
|
27
|
+
#define NODE_PATCH_VERSION 0
|
|
28
28
|
|
|
29
29
|
#define NODE_VERSION_IS_LTS 0
|
|
30
30
|
#define NODE_VERSION_LTS_CODENAME ""
|