node-linux-arm64 16.17.0 → 16.18.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 +386 -0
- package/LICENSE +33 -1
- package/README.md +18 -4
- package/bin/node +0 -0
- package/include/node/config.gypi +217 -215
- package/include/node/node.h +38 -1
- package/include/node/node_version.h +1 -1
- package/package.json +1 -1
- package/share/man/man1/node.1 +9 -0
- package/share/systemtap/tapset/node.stp +0 -146
package/include/node/node.h
CHANGED
|
@@ -75,8 +75,9 @@
|
|
|
75
75
|
#include "v8-platform.h" // NOLINT(build/include_order)
|
|
76
76
|
#include "node_version.h" // NODE_MODULE_VERSION
|
|
77
77
|
|
|
78
|
-
#include <memory>
|
|
79
78
|
#include <functional>
|
|
79
|
+
#include <memory>
|
|
80
|
+
#include <ostream>
|
|
80
81
|
|
|
81
82
|
// We cannot use __POSIX__ in this header because that's only defined when
|
|
82
83
|
// building Node.js.
|
|
@@ -528,6 +529,33 @@ NODE_EXTERN v8::MaybeLocal<v8::Value> PrepareStackTraceCallback(
|
|
|
528
529
|
v8::Local<v8::Value> exception,
|
|
529
530
|
v8::Local<v8::Array> trace);
|
|
530
531
|
|
|
532
|
+
// Writes a diagnostic report to a file. If filename is not provided, the
|
|
533
|
+
// default filename includes the date, time, PID, and a sequence number.
|
|
534
|
+
// The report's JavaScript stack trace is taken from err, if present.
|
|
535
|
+
// If isolate is nullptr, no information about the JavaScript environment
|
|
536
|
+
// is included in the report.
|
|
537
|
+
// Returns the filename of the written report.
|
|
538
|
+
NODE_EXTERN std::string TriggerNodeReport(v8::Isolate* isolate,
|
|
539
|
+
const char* message,
|
|
540
|
+
const char* trigger,
|
|
541
|
+
const std::string& filename,
|
|
542
|
+
v8::Local<v8::Value> error);
|
|
543
|
+
NODE_EXTERN std::string TriggerNodeReport(Environment* env,
|
|
544
|
+
const char* message,
|
|
545
|
+
const char* trigger,
|
|
546
|
+
const std::string& filename,
|
|
547
|
+
v8::Local<v8::Value> error);
|
|
548
|
+
NODE_EXTERN void GetNodeReport(v8::Isolate* isolate,
|
|
549
|
+
const char* message,
|
|
550
|
+
const char* trigger,
|
|
551
|
+
v8::Local<v8::Value> error,
|
|
552
|
+
std::ostream& out);
|
|
553
|
+
NODE_EXTERN void GetNodeReport(Environment* env,
|
|
554
|
+
const char* message,
|
|
555
|
+
const char* trigger,
|
|
556
|
+
v8::Local<v8::Value> error,
|
|
557
|
+
std::ostream& out);
|
|
558
|
+
|
|
531
559
|
// This returns the MultiIsolatePlatform used for an Environment or IsolateData
|
|
532
560
|
// instance, if one exists.
|
|
533
561
|
NODE_EXTERN MultiIsolatePlatform* GetMultiIsolatePlatform(Environment* env);
|
|
@@ -999,6 +1027,15 @@ inline void RemoveEnvironmentCleanupHook(AsyncCleanupHookHandle holder) {
|
|
|
999
1027
|
RemoveEnvironmentCleanupHookInternal(holder.get());
|
|
1000
1028
|
}
|
|
1001
1029
|
|
|
1030
|
+
// This behaves like V8's Isolate::RequestInterrupt(), but also wakes up
|
|
1031
|
+
// the event loop if it is currently idle. Interrupt requests are drained
|
|
1032
|
+
// in `FreeEnvironment()`. The passed callback can not call back into
|
|
1033
|
+
// JavaScript.
|
|
1034
|
+
// This function can be called from any thread.
|
|
1035
|
+
NODE_EXTERN void RequestInterrupt(Environment* env,
|
|
1036
|
+
void (*fun)(void* arg),
|
|
1037
|
+
void* arg);
|
|
1038
|
+
|
|
1002
1039
|
/* Returns the id of the current execution context. If the return value is
|
|
1003
1040
|
* zero then no execution has been set. This will happen if the user handles
|
|
1004
1041
|
* I/O from native code. */
|
package/package.json
CHANGED
package/share/man/man1/node.1
CHANGED
|
@@ -429,6 +429,7 @@ favour of TLSv1.3, which is more secure.
|
|
|
429
429
|
Print short summaries of calls to
|
|
430
430
|
.Sy Atomics.wait() .
|
|
431
431
|
.
|
|
432
|
+
This flag is deprecated.
|
|
432
433
|
.It Fl -trace-deprecation
|
|
433
434
|
Print stack traces for deprecations.
|
|
434
435
|
.
|
|
@@ -645,6 +646,7 @@ instead of printing to stderr.
|
|
|
645
646
|
Equivalent to passing
|
|
646
647
|
.Fl -redirect-warnings Ar file
|
|
647
648
|
on the command line.
|
|
649
|
+
.
|
|
648
650
|
.It Ev NODE_REPL_HISTORY Ar file
|
|
649
651
|
Path to the
|
|
650
652
|
.Ar file
|
|
@@ -654,6 +656,10 @@ The default path is
|
|
|
654
656
|
which is overridden by this variable.
|
|
655
657
|
Setting the value to an empty string ("" or " ") will disable persistent REPL history.
|
|
656
658
|
.
|
|
659
|
+
.It Ev NODE_REPL_EXTERNAL_MODULE Ar file
|
|
660
|
+
Path to a Node.js module which will be loaded in place of the built-in REPL.
|
|
661
|
+
Overriding this value to an empty string (`''`) will use the built-in REPL.
|
|
662
|
+
.
|
|
657
663
|
.It Ev NODE_SKIP_PLATFORM_CHECK
|
|
658
664
|
When set to
|
|
659
665
|
.Ar 1 ,
|
|
@@ -689,6 +695,9 @@ If
|
|
|
689
695
|
.Fl -use-openssl-ca
|
|
690
696
|
is enabled, this overrides and sets OpenSSL's file containing trusted certificates.
|
|
691
697
|
.
|
|
698
|
+
.It Ev TZ
|
|
699
|
+
Specify the timezone configuration.
|
|
700
|
+
.
|
|
692
701
|
.It Ev UV_THREADPOOL_SIZE Ar size
|
|
693
702
|
Sets the number of threads used in libuv's threadpool to
|
|
694
703
|
.Ar size .
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
2
|
-
//
|
|
3
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
4
|
-
// copy of this software and associated documentation files (the
|
|
5
|
-
// "Software"), to deal in the Software without restriction, including
|
|
6
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
8
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
9
|
-
// following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included
|
|
12
|
-
// in all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
15
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
17
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
18
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
19
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
20
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
-
|
|
22
|
-
probe node_net_server_connection = process("node").mark("net__server__connection")
|
|
23
|
-
{
|
|
24
|
-
remote = user_string($arg2);
|
|
25
|
-
port = $arg3;
|
|
26
|
-
fd = $arg4;
|
|
27
|
-
|
|
28
|
-
probestr = sprintf("%s(remote=%s, port=%d, fd=%d)",
|
|
29
|
-
$$name,
|
|
30
|
-
remote,
|
|
31
|
-
port,
|
|
32
|
-
fd);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
probe node_net_stream_end = process("node").mark("net__stream__end")
|
|
36
|
-
{
|
|
37
|
-
remote = user_string($arg2);
|
|
38
|
-
port = $arg3;
|
|
39
|
-
fd = $arg4;
|
|
40
|
-
|
|
41
|
-
probestr = sprintf("%s(remote=%s, port=%d, fd=%d)",
|
|
42
|
-
$$name,
|
|
43
|
-
remote,
|
|
44
|
-
port,
|
|
45
|
-
fd);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
probe node_http_server_request = process("node").mark("http__server__request")
|
|
49
|
-
{
|
|
50
|
-
remote = user_string($arg3);
|
|
51
|
-
port = $arg4;
|
|
52
|
-
method = user_string($arg5);
|
|
53
|
-
url = user_string($arg6);
|
|
54
|
-
fd = $arg7;
|
|
55
|
-
|
|
56
|
-
probestr = sprintf("%s(remote=%s, port=%d, method=%s, url=%s, fd=%d)",
|
|
57
|
-
$$name,
|
|
58
|
-
remote,
|
|
59
|
-
port,
|
|
60
|
-
method,
|
|
61
|
-
url,
|
|
62
|
-
fd);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
probe node_http_server_response = process("node").mark("http__server__response")
|
|
66
|
-
{
|
|
67
|
-
remote = user_string($arg2);
|
|
68
|
-
port = $arg3;
|
|
69
|
-
fd = $arg4;
|
|
70
|
-
|
|
71
|
-
probestr = sprintf("%s(remote=%s, port=%d, fd=%d)",
|
|
72
|
-
$$name,
|
|
73
|
-
remote,
|
|
74
|
-
port,
|
|
75
|
-
fd);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
probe node_http_client_request = process("node").mark("http__client__request")
|
|
79
|
-
{
|
|
80
|
-
remote = user_string($arg3);
|
|
81
|
-
port = $arg4;
|
|
82
|
-
method = user_string($arg5);
|
|
83
|
-
url = user_string($arg6);
|
|
84
|
-
fd = $arg7;
|
|
85
|
-
|
|
86
|
-
probestr = sprintf("%s(remote=%s, port=%d, method=%s, url=%s, fd=%d)",
|
|
87
|
-
$$name,
|
|
88
|
-
remote,
|
|
89
|
-
port,
|
|
90
|
-
method,
|
|
91
|
-
url,
|
|
92
|
-
fd);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
probe node_http_client_response = process("node").mark("http__client__response")
|
|
96
|
-
{
|
|
97
|
-
remote = user_string($arg2);
|
|
98
|
-
port = $arg3;
|
|
99
|
-
fd = $arg4;
|
|
100
|
-
|
|
101
|
-
probestr = sprintf("%s(remote=%s, port=%d, fd=%d)",
|
|
102
|
-
$$name,
|
|
103
|
-
remote,
|
|
104
|
-
port,
|
|
105
|
-
fd);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
probe node_gc_start = process("node").mark("gc__start")
|
|
109
|
-
{
|
|
110
|
-
scavenge = 1 << 0;
|
|
111
|
-
compact = 1 << 1;
|
|
112
|
-
|
|
113
|
-
if ($arg1 == scavenge)
|
|
114
|
-
type = "kGCTypeScavenge";
|
|
115
|
-
else if ($arg1 == compact)
|
|
116
|
-
type = "kGCTypeMarkSweepCompact";
|
|
117
|
-
else
|
|
118
|
-
type = "kGCTypeAll";
|
|
119
|
-
|
|
120
|
-
flags = $arg2;
|
|
121
|
-
|
|
122
|
-
probestr = sprintf("%s(type=%s,flags=%d)",
|
|
123
|
-
$$name,
|
|
124
|
-
type,
|
|
125
|
-
flags);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
probe node_gc_stop = process("node").mark("gc__done")
|
|
129
|
-
{
|
|
130
|
-
scavenge = 1 << 0;
|
|
131
|
-
compact = 1 << 1;
|
|
132
|
-
|
|
133
|
-
if ($arg1 == scavenge)
|
|
134
|
-
type = "kGCTypeScavenge";
|
|
135
|
-
else if ($arg1 == compact)
|
|
136
|
-
type = "kGCTypeMarkSweepCompact";
|
|
137
|
-
else
|
|
138
|
-
type = "kGCTypeAll";
|
|
139
|
-
|
|
140
|
-
flags = $arg2;
|
|
141
|
-
|
|
142
|
-
probestr = sprintf("%s(type=%s,flags=%d)",
|
|
143
|
-
$$name,
|
|
144
|
-
type,
|
|
145
|
-
flags);
|
|
146
|
-
}
|