node-aix-ppc64 18.14.2 → 18.16.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 +429 -0
- package/LICENSE +22 -0
- package/README.md +17 -8
- package/bin/node +0 -0
- package/include/node/common.gypi +7 -7
- package/include/node/config.gypi +9 -2
- package/include/node/node.exp +470 -126
- package/include/node/node.h +20 -1
- package/include/node/node_api.h +2 -0
- package/include/node/node_version.h +2 -2
- package/package.json +1 -1
- package/share/man/man1/node.1 +9 -0
package/include/node/node.h
CHANGED
|
@@ -274,6 +274,15 @@ enum Flags : uint64_t {
|
|
|
274
274
|
// TODO(addaleax): Make this the canonical name, as it is more descriptive.
|
|
275
275
|
namespace ProcessInitializationFlags = ProcessFlags;
|
|
276
276
|
|
|
277
|
+
namespace StopFlags {
|
|
278
|
+
enum Flags : uint32_t {
|
|
279
|
+
kNoFlags = 0,
|
|
280
|
+
// Do not explicitly terminate the Isolate
|
|
281
|
+
// when exiting the Environment.
|
|
282
|
+
kDoNotTerminateIsolate = 1 << 0,
|
|
283
|
+
};
|
|
284
|
+
} // namespace StopFlags
|
|
285
|
+
|
|
277
286
|
class NODE_EXTERN InitializationResult {
|
|
278
287
|
public:
|
|
279
288
|
virtual ~InitializationResult();
|
|
@@ -310,6 +319,7 @@ NODE_EXTERN int Start(int argc, char* argv[]);
|
|
|
310
319
|
// Tear down Node.js while it is running (there are active handles
|
|
311
320
|
// in the loop and / or actively executing JavaScript code).
|
|
312
321
|
NODE_EXTERN int Stop(Environment* env);
|
|
322
|
+
NODE_EXTERN int Stop(Environment* env, StopFlags::Flags flags);
|
|
313
323
|
|
|
314
324
|
// This runs a subset of the initialization performed by
|
|
315
325
|
// InitializeOncePerProcess(), which supersedes this function.
|
|
@@ -438,7 +448,8 @@ enum IsolateSettingsFlags {
|
|
|
438
448
|
MESSAGE_LISTENER_WITH_ERROR_LEVEL = 1 << 0,
|
|
439
449
|
DETAILED_SOURCE_POSITIONS_FOR_PROFILING = 1 << 1,
|
|
440
450
|
SHOULD_NOT_SET_PROMISE_REJECTION_CALLBACK = 1 << 2,
|
|
441
|
-
SHOULD_NOT_SET_PREPARE_STACK_TRACE_CALLBACK = 1 << 3
|
|
451
|
+
SHOULD_NOT_SET_PREPARE_STACK_TRACE_CALLBACK = 1 << 3,
|
|
452
|
+
ALLOW_MODIFY_CODE_GENERATION_FROM_STRINGS_CALLBACK = 1 << 4,
|
|
442
453
|
};
|
|
443
454
|
|
|
444
455
|
struct IsolateSettings {
|
|
@@ -456,6 +467,8 @@ struct IsolateSettings {
|
|
|
456
467
|
v8::PromiseRejectCallback promise_reject_callback = nullptr;
|
|
457
468
|
v8::AllowWasmCodeGenerationCallback
|
|
458
469
|
allow_wasm_code_generation_callback = nullptr;
|
|
470
|
+
v8::ModifyCodeGenerationFromStringsCallback2
|
|
471
|
+
modify_code_generation_from_strings_callback = nullptr;
|
|
459
472
|
};
|
|
460
473
|
|
|
461
474
|
// Overriding IsolateSettings may produce unexpected behavior
|
|
@@ -577,6 +590,12 @@ NODE_EXTERN std::unique_ptr<InspectorParentHandle> GetInspectorParentHandle(
|
|
|
577
590
|
ThreadId child_thread_id,
|
|
578
591
|
const char* child_url);
|
|
579
592
|
|
|
593
|
+
NODE_EXTERN std::unique_ptr<InspectorParentHandle> GetInspectorParentHandle(
|
|
594
|
+
Environment* parent_env,
|
|
595
|
+
ThreadId child_thread_id,
|
|
596
|
+
const char* child_url,
|
|
597
|
+
const char* name);
|
|
598
|
+
|
|
580
599
|
struct StartExecutionCallbackInfo {
|
|
581
600
|
v8::Local<v8::Object> process_object;
|
|
582
601
|
v8::Local<v8::Function> native_require;
|
package/include/node/node_api.h
CHANGED
|
@@ -175,6 +175,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_get_buffer_info(napi_env env,
|
|
|
175
175
|
void** data,
|
|
176
176
|
size_t* length);
|
|
177
177
|
|
|
178
|
+
#ifndef __wasm32__
|
|
178
179
|
// Methods to manage simple async operations
|
|
179
180
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
180
181
|
napi_create_async_work(napi_env env,
|
|
@@ -190,6 +191,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_queue_async_work(napi_env env,
|
|
|
190
191
|
napi_async_work work);
|
|
191
192
|
NAPI_EXTERN napi_status NAPI_CDECL napi_cancel_async_work(napi_env env,
|
|
192
193
|
napi_async_work work);
|
|
194
|
+
#endif // __wasm32__
|
|
193
195
|
|
|
194
196
|
// version management
|
|
195
197
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
@@ -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 16
|
|
27
|
+
#define NODE_PATCH_VERSION 0
|
|
28
28
|
|
|
29
29
|
#define NODE_VERSION_IS_LTS 1
|
|
30
30
|
#define NODE_VERSION_LTS_CODENAME "Hydrogen"
|
package/package.json
CHANGED
package/share/man/man1/node.1
CHANGED
|
@@ -163,6 +163,9 @@ Use the specified file as a security policy.
|
|
|
163
163
|
.It Fl -experimental-shadow-realm
|
|
164
164
|
Use this flag to enable ShadowRealm support.
|
|
165
165
|
.
|
|
166
|
+
.It Fl -experimental-test-coverage
|
|
167
|
+
Enable code coverage in the test runner.
|
|
168
|
+
.
|
|
166
169
|
.It Fl -no-experimental-fetch
|
|
167
170
|
Disable experimental support for the Fetch API.
|
|
168
171
|
.
|
|
@@ -395,6 +398,12 @@ Starts the Node.js command line test runner.
|
|
|
395
398
|
A regular expression that configures the test runner to only execute tests
|
|
396
399
|
whose name matches the provided pattern.
|
|
397
400
|
.
|
|
401
|
+
.It Fl -test-reporter
|
|
402
|
+
A test reporter to use when running tests.
|
|
403
|
+
.
|
|
404
|
+
.It Fl -test-reporter-destination
|
|
405
|
+
The destination for the corresponding test reporter.
|
|
406
|
+
.
|
|
398
407
|
.It Fl -test-only
|
|
399
408
|
Configures the test runner to only execute top level tests that have the `only`
|
|
400
409
|
option set.
|