node-aix-ppc64 20.16.0 → 20.17.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 +228 -0
- package/LICENSE +0 -33
- package/README.md +23 -19
- package/bin/node +0 -0
- package/include/node/common.gypi +5 -1
- package/include/node/config.gypi +2 -0
- package/include/node/js_native_api.h +26 -25
- package/include/node/js_native_api_types.h +13 -9
- package/include/node/node.exp +950 -908
- package/include/node/node.h +7 -3
- package/include/node/node_api.h +13 -13
- package/include/node/node_version.h +1 -1
- package/package.json +1 -1
- package/share/man/man1/node.1 +0 -3
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
EXTERN_C_START
|
|
51
51
|
|
|
52
52
|
NAPI_EXTERN napi_status NAPI_CDECL napi_get_last_error_info(
|
|
53
|
-
|
|
53
|
+
node_api_basic_env env, const napi_extended_error_info** result);
|
|
54
54
|
|
|
55
55
|
// Getters for defined singletons
|
|
56
56
|
NAPI_EXTERN napi_status NAPI_CDECL napi_get_undefined(napi_env env,
|
|
@@ -94,19 +94,19 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_create_string_utf16(napi_env env,
|
|
|
94
94
|
napi_value* result);
|
|
95
95
|
#ifdef NAPI_EXPERIMENTAL
|
|
96
96
|
#define NODE_API_EXPERIMENTAL_HAS_EXTERNAL_STRINGS
|
|
97
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
97
|
+
NAPI_EXTERN napi_status NAPI_CDECL node_api_create_external_string_latin1(
|
|
98
|
+
napi_env env,
|
|
99
|
+
char* str,
|
|
100
|
+
size_t length,
|
|
101
|
+
node_api_basic_finalize finalize_callback,
|
|
102
|
+
void* finalize_hint,
|
|
103
|
+
napi_value* result,
|
|
104
|
+
bool* copied);
|
|
105
105
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
106
106
|
node_api_create_external_string_utf16(napi_env env,
|
|
107
107
|
char16_t* str,
|
|
108
108
|
size_t length,
|
|
109
|
-
|
|
109
|
+
node_api_basic_finalize finalize_callback,
|
|
110
110
|
void* finalize_hint,
|
|
111
111
|
napi_value* result,
|
|
112
112
|
bool* copied);
|
|
@@ -318,12 +318,13 @@ napi_define_class(napi_env env,
|
|
|
318
318
|
napi_value* result);
|
|
319
319
|
|
|
320
320
|
// Methods to work with external data objects
|
|
321
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
321
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
322
|
+
napi_wrap(napi_env env,
|
|
323
|
+
napi_value js_object,
|
|
324
|
+
void* native_object,
|
|
325
|
+
node_api_basic_finalize finalize_cb,
|
|
326
|
+
void* finalize_hint,
|
|
327
|
+
napi_ref* result);
|
|
327
328
|
NAPI_EXTERN napi_status NAPI_CDECL napi_unwrap(napi_env env,
|
|
328
329
|
napi_value js_object,
|
|
329
330
|
void** result);
|
|
@@ -333,7 +334,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_remove_wrap(napi_env env,
|
|
|
333
334
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
334
335
|
napi_create_external(napi_env env,
|
|
335
336
|
void* data,
|
|
336
|
-
|
|
337
|
+
node_api_basic_finalize finalize_cb,
|
|
337
338
|
void* finalize_hint,
|
|
338
339
|
napi_value* result);
|
|
339
340
|
NAPI_EXTERN napi_status NAPI_CDECL napi_get_value_external(napi_env env,
|
|
@@ -432,7 +433,7 @@ NAPI_EXTERN napi_status NAPI_CDECL
|
|
|
432
433
|
napi_create_external_arraybuffer(napi_env env,
|
|
433
434
|
void* external_data,
|
|
434
435
|
size_t byte_length,
|
|
435
|
-
|
|
436
|
+
node_api_basic_finalize finalize_cb,
|
|
436
437
|
void* finalize_hint,
|
|
437
438
|
napi_value* result);
|
|
438
439
|
#endif // NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
|
|
@@ -474,7 +475,7 @@ napi_get_dataview_info(napi_env env,
|
|
|
474
475
|
size_t* byte_offset);
|
|
475
476
|
|
|
476
477
|
// version management
|
|
477
|
-
NAPI_EXTERN napi_status NAPI_CDECL napi_get_version(
|
|
478
|
+
NAPI_EXTERN napi_status NAPI_CDECL napi_get_version(node_api_basic_env env,
|
|
478
479
|
uint32_t* result);
|
|
479
480
|
|
|
480
481
|
// Promises
|
|
@@ -498,7 +499,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_run_script(napi_env env,
|
|
|
498
499
|
|
|
499
500
|
// Memory management
|
|
500
501
|
NAPI_EXTERN napi_status NAPI_CDECL napi_adjust_external_memory(
|
|
501
|
-
|
|
502
|
+
node_api_basic_env env, int64_t change_in_bytes, int64_t* adjusted_value);
|
|
502
503
|
|
|
503
504
|
#if NAPI_VERSION >= 5
|
|
504
505
|
|
|
@@ -520,7 +521,7 @@ NAPI_EXTERN napi_status NAPI_CDECL
|
|
|
520
521
|
napi_add_finalizer(napi_env env,
|
|
521
522
|
napi_value js_object,
|
|
522
523
|
void* finalize_data,
|
|
523
|
-
|
|
524
|
+
node_api_basic_finalize finalize_cb,
|
|
524
525
|
void* finalize_hint,
|
|
525
526
|
napi_ref* result);
|
|
526
527
|
|
|
@@ -530,7 +531,7 @@ napi_add_finalizer(napi_env env,
|
|
|
530
531
|
#define NODE_API_EXPERIMENTAL_HAS_POST_FINALIZER
|
|
531
532
|
|
|
532
533
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
533
|
-
node_api_post_finalizer(
|
|
534
|
+
node_api_post_finalizer(node_api_basic_env env,
|
|
534
535
|
napi_finalize finalize_cb,
|
|
535
536
|
void* finalize_data,
|
|
536
537
|
void* finalize_hint);
|
|
@@ -575,13 +576,13 @@ napi_get_all_property_names(napi_env env,
|
|
|
575
576
|
|
|
576
577
|
// Instance data
|
|
577
578
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
578
|
-
napi_set_instance_data(
|
|
579
|
+
napi_set_instance_data(node_api_basic_env env,
|
|
579
580
|
void* data,
|
|
580
581
|
napi_finalize finalize_cb,
|
|
581
582
|
void* finalize_hint);
|
|
582
583
|
|
|
583
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
584
|
-
|
|
584
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
585
|
+
napi_get_instance_data(node_api_basic_env env, void** data);
|
|
585
586
|
#endif // NAPI_VERSION >= 6
|
|
586
587
|
|
|
587
588
|
#if NAPI_VERSION >= 7
|
|
@@ -27,7 +27,7 @@ typedef struct napi_env__* napi_env;
|
|
|
27
27
|
// meaning that they do not affect the state of the JS engine, and can
|
|
28
28
|
// therefore be called synchronously from a finalizer that itself runs
|
|
29
29
|
// synchronously during GC. Such APIs can receive either a `napi_env` or a
|
|
30
|
-
// `
|
|
30
|
+
// `node_api_basic_env` as their first parameter, because we should be able to
|
|
31
31
|
// also call them during normal, non-garbage-collecting operations, whereas
|
|
32
32
|
// APIs that affect the state of the JS engine can only receive a `napi_env` as
|
|
33
33
|
// their first parameter, because we must not call them during GC. In lieu of
|
|
@@ -37,19 +37,21 @@ typedef struct napi_env__* napi_env;
|
|
|
37
37
|
// expecting a non-const value.
|
|
38
38
|
//
|
|
39
39
|
// In conjunction with appropriate CFLAGS to warn us if we're passing a const
|
|
40
|
-
// (
|
|
41
|
-
// definition of
|
|
42
|
-
//
|
|
43
|
-
// (unless the user explicitly casts the environment), we achieve
|
|
44
|
-
// to ensure at compile time that we do not call APIs that affect
|
|
45
|
-
// the JS engine from a synchronous (
|
|
40
|
+
// (basic) environment into an API that expects a non-const environment, and
|
|
41
|
+
// the definition of basic finalizer function pointer types below, which
|
|
42
|
+
// receive a basic environment as their first parameter, and can thus only call
|
|
43
|
+
// basic APIs (unless the user explicitly casts the environment), we achieve
|
|
44
|
+
// the ability to ensure at compile time that we do not call APIs that affect
|
|
45
|
+
// the state of the JS engine from a synchronous (basic) finalizer.
|
|
46
46
|
#if !defined(NAPI_EXPERIMENTAL) || \
|
|
47
47
|
(defined(NAPI_EXPERIMENTAL) && \
|
|
48
|
-
defined(NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT)
|
|
48
|
+
(defined(NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT) || \
|
|
49
|
+
defined(NODE_API_EXPERIMENTAL_BASIC_ENV_OPT_OUT)))
|
|
49
50
|
typedef struct napi_env__* node_api_nogc_env;
|
|
50
51
|
#else
|
|
51
52
|
typedef const struct napi_env__* node_api_nogc_env;
|
|
52
53
|
#endif
|
|
54
|
+
typedef node_api_nogc_env node_api_basic_env;
|
|
53
55
|
|
|
54
56
|
typedef struct napi_value__* napi_value;
|
|
55
57
|
typedef struct napi_ref__* napi_ref;
|
|
@@ -147,13 +149,15 @@ typedef void(NAPI_CDECL* napi_finalize)(napi_env env,
|
|
|
147
149
|
|
|
148
150
|
#if !defined(NAPI_EXPERIMENTAL) || \
|
|
149
151
|
(defined(NAPI_EXPERIMENTAL) && \
|
|
150
|
-
defined(NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT)
|
|
152
|
+
(defined(NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT) || \
|
|
153
|
+
defined(NODE_API_EXPERIMENTAL_BASIC_ENV_OPT_OUT)))
|
|
151
154
|
typedef napi_finalize node_api_nogc_finalize;
|
|
152
155
|
#else
|
|
153
156
|
typedef void(NAPI_CDECL* node_api_nogc_finalize)(node_api_nogc_env env,
|
|
154
157
|
void* finalize_data,
|
|
155
158
|
void* finalize_hint);
|
|
156
159
|
#endif
|
|
160
|
+
typedef node_api_nogc_finalize node_api_basic_finalize;
|
|
157
161
|
|
|
158
162
|
typedef struct {
|
|
159
163
|
// One of utf8name or name should be NULL.
|