node-linux-arm64 19.1.0 → 19.2.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 +142 -1
- package/LICENSE +14 -2
- package/README.md +2 -2
- package/bin/node +0 -0
- package/include/node/common.gypi +2 -6
- package/include/node/config.gypi +7 -1
- package/include/node/node_api.h +4 -4
- package/include/node/node_api_types.h +5 -0
- package/include/node/node_version.h +1 -1
- package/include/node/v8-array-buffer.h +8 -0
- package/include/node/v8-context.h +1 -0
- package/include/node/v8-internal.h +16 -1
- package/include/node/v8-isolate.h +1 -0
- package/include/node/v8-version.h +2 -2
- package/include/node/v8config.h +31 -0
- package/include/node/zconf.h +16 -3
- package/include/node/zlib.h +137 -108
- package/package.json +1 -1
- package/share/doc/node/gdbinit +61 -0
package/CHANGELOG.md
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
</tr>
|
|
9
9
|
<tr>
|
|
10
10
|
<td>
|
|
11
|
-
<b><a href="#19.
|
|
11
|
+
<b><a href="#19.2.0">19.2.0</a></b><br/>
|
|
12
|
+
<a href="#19.1.0">19.1.0</a><br/>
|
|
12
13
|
<a href="#19.0.1">19.0.1</a><br/>
|
|
13
14
|
<a href="#19.0.0">19.0.0</a><br/>
|
|
14
15
|
</td>
|
|
@@ -36,6 +37,146 @@
|
|
|
36
37
|
* [io.js](CHANGELOG_IOJS.md)
|
|
37
38
|
* [Archive](CHANGELOG_ARCHIVE.md)
|
|
38
39
|
|
|
40
|
+
<a id="19.2.0"></a>
|
|
41
|
+
|
|
42
|
+
## 2022-11-29, Version 19.2.0 (Current), @ruyadorno
|
|
43
|
+
|
|
44
|
+
### Notable changes
|
|
45
|
+
|
|
46
|
+
#### Time zone update
|
|
47
|
+
|
|
48
|
+
Time zone data has been updated to 2022f. This includes changes to Daylight Savings Time (DST) for Fiji and Mexico. For more information, see <https://mm.icann.org/pipermail/tz-announce/2022-October/000075.html>.
|
|
49
|
+
|
|
50
|
+
#### Other notable changes
|
|
51
|
+
|
|
52
|
+
* **buffer**
|
|
53
|
+
* (SEMVER-MINOR) introduce `File` class (Khafra) [#45139](https://github.com/nodejs/node/pull/45139)
|
|
54
|
+
* **deps**
|
|
55
|
+
* update V8 to 10.8.168.20 (Michaël Zasso) [#45230](https://github.com/nodejs/node/pull/45230)
|
|
56
|
+
* **doc**
|
|
57
|
+
* deprecate use of invalid ports in `url.parse` (Antoine du Hamel) [#45576](https://github.com/nodejs/node/pull/45576)
|
|
58
|
+
* **util**
|
|
59
|
+
* add fast path for utf8 encoding (Yagiz Nizipli) [#45412](https://github.com/nodejs/node/pull/45412)
|
|
60
|
+
|
|
61
|
+
### Commits
|
|
62
|
+
|
|
63
|
+
* \[[`7cff1e14ba`](https://github.com/nodejs/node/commit/7cff1e14ba)] - **(SEMVER-MINOR)** **async\_hooks**: add hook to stop propagation (Gerhard Stöbich) [#45386](https://github.com/nodejs/node/pull/45386)
|
|
64
|
+
* \[[`f08f6a64a3`](https://github.com/nodejs/node/commit/f08f6a64a3)] - **benchmark**: add v8 serialize benchmark (Yagiz Nizipli) [#45476](https://github.com/nodejs/node/pull/45476)
|
|
65
|
+
* \[[`26ad54c1a2`](https://github.com/nodejs/node/commit/26ad54c1a2)] - **benchmark**: add text-encoder benchmark (Yagiz Nizipli) [#45450](https://github.com/nodejs/node/pull/45450)
|
|
66
|
+
* \[[`6c56c9722b`](https://github.com/nodejs/node/commit/6c56c9722b)] - **(SEMVER-MINOR)** **buffer**: introduce File (Khafra) [#45139](https://github.com/nodejs/node/pull/45139)
|
|
67
|
+
* \[[`6e1e25d6dd`](https://github.com/nodejs/node/commit/6e1e25d6dd)] - **build**: avoid redefined macro (Michaël Zasso) [#45544](https://github.com/nodejs/node/pull/45544)
|
|
68
|
+
* \[[`5c9b2a7c82`](https://github.com/nodejs/node/commit/5c9b2a7c82)] - **build**: fix env.h for cpp20 (Jiawen Geng) [#45516](https://github.com/nodejs/node/pull/45516)
|
|
69
|
+
* \[[`54fd8a1966`](https://github.com/nodejs/node/commit/54fd8a1966)] - **build**: reset embedder string to "-node.0" (Michaël Zasso) [#45230](https://github.com/nodejs/node/pull/45230)
|
|
70
|
+
* \[[`0f3cf7e5ce`](https://github.com/nodejs/node/commit/0f3cf7e5ce)] - _**Revert**_ "**build**: remove precompiled header and debug information for host builds" (Stefan Stojanovic) [#45432](https://github.com/nodejs/node/pull/45432)
|
|
71
|
+
* \[[`62ef1eb4ff`](https://github.com/nodejs/node/commit/62ef1eb4ff)] - **build**: add --v8-disable-object-print flag (MURAKAMI Masahiko) [#45458](https://github.com/nodejs/node/pull/45458)
|
|
72
|
+
* \[[`1ce2f56cf6`](https://github.com/nodejs/node/commit/1ce2f56cf6)] - **build**: make scripts in gyp run with right python (Jiawen Geng) [#45435](https://github.com/nodejs/node/pull/45435)
|
|
73
|
+
* \[[`9ffe3c051a`](https://github.com/nodejs/node/commit/9ffe3c051a)] - **build,deps,src**: fix Intel VTune profiling support (Shi Lei) [#45248](https://github.com/nodejs/node/pull/45248)
|
|
74
|
+
* \[[`bd3accc7b2`](https://github.com/nodejs/node/commit/bd3accc7b2)] - **crypto**: clear OpenSSL error queue after calling X509\_check\_private\_key() (Filip Skokan) [#45495](https://github.com/nodejs/node/pull/45495)
|
|
75
|
+
* \[[`724addb293`](https://github.com/nodejs/node/commit/724addb293)] - **crypto**: update root certificates (Luigi Pinca) [#45490](https://github.com/nodejs/node/pull/45490)
|
|
76
|
+
* \[[`efe19eb7f5`](https://github.com/nodejs/node/commit/efe19eb7f5)] - **crypto**: clear OpenSSL error queue after calling X509\_verify() (Takuro Sato) [#45377](https://github.com/nodejs/node/pull/45377)
|
|
77
|
+
* \[[`f63ae525fa`](https://github.com/nodejs/node/commit/f63ae525fa)] - **deps**: V8: cherry-pick 2ada52cffbff (Michaël Zasso) [#45573](https://github.com/nodejs/node/pull/45573)
|
|
78
|
+
* \[[`43e002e3d4`](https://github.com/nodejs/node/commit/43e002e3d4)] - **deps**: update base64 to 0.5.0 (Facundo Tuesca) [#45509](https://github.com/nodejs/node/pull/45509)
|
|
79
|
+
* \[[`aaa4ac7735`](https://github.com/nodejs/node/commit/aaa4ac7735)] - **deps**: V8: cherry-pick 9df5ef70ff18 (Yagiz Nizipli) [#45230](https://github.com/nodejs/node/pull/45230)
|
|
80
|
+
* \[[`e70c3090ff`](https://github.com/nodejs/node/commit/e70c3090ff)] - **deps**: V8: cherry-pick f1c888e7093e (Michaël Zasso) [#45230](https://github.com/nodejs/node/pull/45230)
|
|
81
|
+
* \[[`51eb323c50`](https://github.com/nodejs/node/commit/51eb323c50)] - **deps**: V8: cherry-pick 92a7385171bb (Michaël Zasso) [#45230](https://github.com/nodejs/node/pull/45230)
|
|
82
|
+
* \[[`1370b1a769`](https://github.com/nodejs/node/commit/1370b1a769)] - **deps**: fix V8 build on Windows with MSVC (Michaël Zasso) [#45230](https://github.com/nodejs/node/pull/45230)
|
|
83
|
+
* \[[`3cd6367e6a`](https://github.com/nodejs/node/commit/3cd6367e6a)] - **deps**: silence irrelevant V8 warning (Michaël Zasso) [#45230](https://github.com/nodejs/node/pull/45230)
|
|
84
|
+
* \[[`9348bdd28d`](https://github.com/nodejs/node/commit/9348bdd28d)] - **deps**: V8: fix v8-cppgc.h for MSVC (Jiawen Geng) [#45230](https://github.com/nodejs/node/pull/45230)
|
|
85
|
+
* \[[`e9292544b0`](https://github.com/nodejs/node/commit/e9292544b0)] - **deps**: fix V8 build issue with inline methods (Jiawen Geng) [#45230](https://github.com/nodejs/node/pull/45230)
|
|
86
|
+
* \[[`a3b9967553`](https://github.com/nodejs/node/commit/a3b9967553)] - **deps**: update V8 to 10.8.168.20 (Michaël Zasso) [#45230](https://github.com/nodejs/node/pull/45230)
|
|
87
|
+
* \[[`117efe98b0`](https://github.com/nodejs/node/commit/117efe98b0)] - **deps**: V8: cherry-pick 9df5ef70ff18 (Yagiz Nizipli) [#45474](https://github.com/nodejs/node/pull/45474)
|
|
88
|
+
* \[[`628891d4dd`](https://github.com/nodejs/node/commit/628891d4dd)] - **deps**: update timezone to 2022f (Node.js GitHub Bot) [#45289](https://github.com/nodejs/node/pull/45289)
|
|
89
|
+
* \[[`45ba14b3be`](https://github.com/nodejs/node/commit/45ba14b3be)] - **deps**: fix zlib compilation for CPUs without SIMD features (Anna Henningsen) [#45387](https://github.com/nodejs/node/pull/45387)
|
|
90
|
+
* \[[`c41e67fe1d`](https://github.com/nodejs/node/commit/c41e67fe1d)] - **deps**: update zlib to upstream 8bbd6c31 (Luigi Pinca) [#45387](https://github.com/nodejs/node/pull/45387)
|
|
91
|
+
* \[[`413bf9ad39`](https://github.com/nodejs/node/commit/413bf9ad39)] - **deps**: patch V8 to 10.7.193.22 (Michaël Zasso) [#45460](https://github.com/nodejs/node/pull/45460)
|
|
92
|
+
* \[[`ad8da86b3f`](https://github.com/nodejs/node/commit/ad8da86b3f)] - **deps**: update acorn to 8.8.1 (Node.js GitHub Bot) [#45441](https://github.com/nodejs/node/pull/45441)
|
|
93
|
+
* \[[`17e6031bf0`](https://github.com/nodejs/node/commit/17e6031bf0)] - **deps**: V8: cherry-pick 031b98b25cba (Michaël Zasso) [#45375](https://github.com/nodejs/node/pull/45375)
|
|
94
|
+
* \[[`9e0e97c121`](https://github.com/nodejs/node/commit/9e0e97c121)] - **diagnostics\_channel**: built-in channels should remain experimental (Stephen Belanger) [#45423](https://github.com/nodejs/node/pull/45423)
|
|
95
|
+
* \[[`44886e55e1`](https://github.com/nodejs/node/commit/44886e55e1)] - **diagnostics\_channel**: mark as stable (Stephen Belanger) [#45290](https://github.com/nodejs/node/pull/45290)
|
|
96
|
+
* \[[`b6b5b51687`](https://github.com/nodejs/node/commit/b6b5b51687)] - **doc**: deprecate use of invalid ports in `url.parse` (Antoine du Hamel) [#45576](https://github.com/nodejs/node/pull/45576)
|
|
97
|
+
* \[[`d805d5a894`](https://github.com/nodejs/node/commit/d805d5a894)] - **doc**: clarify changes in readableFlowing (Kohei Ueno) [#45554](https://github.com/nodejs/node/pull/45554)
|
|
98
|
+
* \[[`015842f3d2`](https://github.com/nodejs/node/commit/015842f3d2)] - **doc**: use console.error for error case in http2 (Deokjin Kim) [#45577](https://github.com/nodejs/node/pull/45577)
|
|
99
|
+
* \[[`4345732900`](https://github.com/nodejs/node/commit/4345732900)] - **doc**: add version description about fsPromise.constants (chlorine) [#45556](https://github.com/nodejs/node/pull/45556)
|
|
100
|
+
* \[[`16643dbb19`](https://github.com/nodejs/node/commit/16643dbb19)] - **doc**: add missing documentation for paramEncoding (Tobias Nießen) [#45523](https://github.com/nodejs/node/pull/45523)
|
|
101
|
+
* \[[`246cd358b5`](https://github.com/nodejs/node/commit/246cd358b5)] - **doc**: fix typo in threat model (Tobias Nießen) [#45558](https://github.com/nodejs/node/pull/45558)
|
|
102
|
+
* \[[`5b1df22db0`](https://github.com/nodejs/node/commit/5b1df22db0)] - **doc**: add Node.js Threat Model (Rafael Gonzaga) [#45223](https://github.com/nodejs/node/pull/45223)
|
|
103
|
+
* \[[`19d8493c92`](https://github.com/nodejs/node/commit/19d8493c92)] - **doc**: run license-builder (github-actions\[bot]) [#45553](https://github.com/nodejs/node/pull/45553)
|
|
104
|
+
* \[[`6f0bc097ea`](https://github.com/nodejs/node/commit/6f0bc097ea)] - **doc**: add async\_hooks migration note (Geoffrey Booth) [#45335](https://github.com/nodejs/node/pull/45335)
|
|
105
|
+
* \[[`118de4b44c`](https://github.com/nodejs/node/commit/118de4b44c)] - **doc**: fix RESOLVE\_ESM\_MATCH in modules.md (翠 / green) [#45280](https://github.com/nodejs/node/pull/45280)
|
|
106
|
+
* \[[`4de67d1ef4`](https://github.com/nodejs/node/commit/4de67d1ef4)] - **doc**: add arm64 to os.machine() (Carter Snook) [#45374](https://github.com/nodejs/node/pull/45374)
|
|
107
|
+
* \[[`1812a89c00`](https://github.com/nodejs/node/commit/1812a89c00)] - **doc**: add lint rule to enforce trailing commas (Antoine du Hamel) [#45471](https://github.com/nodejs/node/pull/45471)
|
|
108
|
+
* \[[`4128c27f66`](https://github.com/nodejs/node/commit/4128c27f66)] - **doc**: include v19.1.0 in `CHANGELOG.md` (Rafael Gonzaga) [#45462](https://github.com/nodejs/node/pull/45462)
|
|
109
|
+
* \[[`94a6a97ec6`](https://github.com/nodejs/node/commit/94a6a97ec6)] - **doc**: adjust wording to eliminate awkward typography (Konv) [#45398](https://github.com/nodejs/node/pull/45398)
|
|
110
|
+
* \[[`a6fe707b62`](https://github.com/nodejs/node/commit/a6fe707b62)] - **doc**: fix typo in maintaining-dependencies.md (Tobias Nießen) [#45428](https://github.com/nodejs/node/pull/45428)
|
|
111
|
+
* \[[`8906a4e58e`](https://github.com/nodejs/node/commit/8906a4e58e)] - **esm**: add JSDoc property descriptions for loader (Rich Trott) [#45370](https://github.com/nodejs/node/pull/45370)
|
|
112
|
+
* \[[`4e5ad9df50`](https://github.com/nodejs/node/commit/4e5ad9df50)] - **esm**: add JSDoc property descriptions for fetch (Rich Trott) [#45370](https://github.com/nodejs/node/pull/45370)
|
|
113
|
+
* \[[`2b760c339e`](https://github.com/nodejs/node/commit/2b760c339e)] - **fs**: fix fs.rm support for loop symlinks (Nathanael Ruf) [#45439](https://github.com/nodejs/node/pull/45439)
|
|
114
|
+
* \[[`e0a271e41b`](https://github.com/nodejs/node/commit/e0a271e41b)] - **gyp**: fix v8 canary build on aix (Vasili Skurydzin) [#45496](https://github.com/nodejs/node/pull/45496)
|
|
115
|
+
* \[[`eac26c0793`](https://github.com/nodejs/node/commit/eac26c0793)] - _**Revert**_ "**http**: headers(Distinct), trailers(Distinct) setters to be no-op" (Rich Trott) [#45527](https://github.com/nodejs/node/pull/45527)
|
|
116
|
+
* \[[`f208db70a0`](https://github.com/nodejs/node/commit/f208db70a0)] - **http**: add debug log for ERR\_UNESCAPED\_CHARACTERS (Aidan Temple) [#45420](https://github.com/nodejs/node/pull/45420)
|
|
117
|
+
* \[[`b72b2bab72`](https://github.com/nodejs/node/commit/b72b2bab72)] - **http**: add JSDoc property descriptions (Rich Trott) [#45370](https://github.com/nodejs/node/pull/45370)
|
|
118
|
+
* \[[`4c9159a830`](https://github.com/nodejs/node/commit/4c9159a830)] - **lib**: improve transferable abort controller exec (Yagiz Nizipli) [#45525](https://github.com/nodejs/node/pull/45525)
|
|
119
|
+
* \[[`5745bcbb41`](https://github.com/nodejs/node/commit/5745bcbb41)] - **lib**: improve AbortController creation duration (Yagiz Nizipli) [#45525](https://github.com/nodejs/node/pull/45525)
|
|
120
|
+
* \[[`38767b42fb`](https://github.com/nodejs/node/commit/38767b42fb)] - **lib**: do not throw if global property is no longer configurable (Antoine du Hamel) [#45344](https://github.com/nodejs/node/pull/45344)
|
|
121
|
+
* \[[`0d1b1c5df0`](https://github.com/nodejs/node/commit/0d1b1c5df0)] - **meta**: update AUTHORS (Node.js GitHub Bot) [#45531](https://github.com/nodejs/node/pull/45531)
|
|
122
|
+
* \[[`208ea1a58c`](https://github.com/nodejs/node/commit/208ea1a58c)] - **meta**: update VoltrexMaster's username (Mohammed Keyvanzadeh) [#45503](https://github.com/nodejs/node/pull/45503)
|
|
123
|
+
* \[[`d13ea68ef6`](https://github.com/nodejs/node/commit/d13ea68ef6)] - **meta**: update AUTHORS (Node.js GitHub Bot) [#45443](https://github.com/nodejs/node/pull/45443)
|
|
124
|
+
* \[[`6704e7814f`](https://github.com/nodejs/node/commit/6704e7814f)] - **meta**: be more proactive about removing from teams (Rich Trott) [#45352](https://github.com/nodejs/node/pull/45352)
|
|
125
|
+
* \[[`6fdd202c57`](https://github.com/nodejs/node/commit/6fdd202c57)] - **module**: require.resolve.paths returns null with node schema (MURAKAMI Masahiko) [#45147](https://github.com/nodejs/node/pull/45147)
|
|
126
|
+
* \[[`38f1ede379`](https://github.com/nodejs/node/commit/38f1ede379)] - **node-api**: address coverity warning (Michael Dawson) [#45563](https://github.com/nodejs/node/pull/45563)
|
|
127
|
+
* \[[`4a4f2802ec`](https://github.com/nodejs/node/commit/4a4f2802ec)] - **node-api**: declare type napi\_cleanup\_hook (Chengzhong Wu) [#45391](https://github.com/nodejs/node/pull/45391)
|
|
128
|
+
* \[[`8ff16fd8c0`](https://github.com/nodejs/node/commit/8ff16fd8c0)] - **node-api**: fix immediate napi\_remove\_wrap test (Chengzhong Wu) [#45406](https://github.com/nodejs/node/pull/45406)
|
|
129
|
+
* \[[`e7a5b3347b`](https://github.com/nodejs/node/commit/e7a5b3347b)] - **src**: address coverity warning in node\_file.cc (Michael Dawson) [#45565](https://github.com/nodejs/node/pull/45565)
|
|
130
|
+
* \[[`128c9f6fac`](https://github.com/nodejs/node/commit/128c9f6fac)] - **src**: use qualified `std::move` call in node\_http2 (Michaël Zasso) [#45555](https://github.com/nodejs/node/pull/45555)
|
|
131
|
+
* \[[`57bca94cb1`](https://github.com/nodejs/node/commit/57bca94cb1)] - **src**: avoid unused variables and functions (Michaël Zasso) [#45542](https://github.com/nodejs/node/pull/45542)
|
|
132
|
+
* \[[`649b31f5e5`](https://github.com/nodejs/node/commit/649b31f5e5)] - **src**: add missing include for `std::all_of` (Michaël Zasso) [#45541](https://github.com/nodejs/node/pull/45541)
|
|
133
|
+
* \[[`56f22ea47c`](https://github.com/nodejs/node/commit/56f22ea47c)] - **src**: set an appropriate thread pool size if given `--v8-pool-size=0` (Daeyeon Jeong) [#45513](https://github.com/nodejs/node/pull/45513)
|
|
134
|
+
* \[[`cce9e11d2d`](https://github.com/nodejs/node/commit/cce9e11d2d)] - **src**: move FsStatsOffset and kFsStatsBufferLength to node\_file.h (Joyee Cheung) [#45498](https://github.com/nodejs/node/pull/45498)
|
|
135
|
+
* \[[`5e5bf0c236`](https://github.com/nodejs/node/commit/5e5bf0c236)] - **src**: don't run tasks on isolate termination (Santiago Gimeno) [#45444](https://github.com/nodejs/node/pull/45444)
|
|
136
|
+
* \[[`10e7c2a62c`](https://github.com/nodejs/node/commit/10e7c2a62c)] - **src**: remove the unused PackageConfig class (Joyee Cheung) [#45478](https://github.com/nodejs/node/pull/45478)
|
|
137
|
+
* \[[`459d4481d4`](https://github.com/nodejs/node/commit/459d4481d4)] - **src**: add --max-semi-space-size to the options allowed in NODE\_OPTIONS (Emanuel Hoogeveen) [#44436](https://github.com/nodejs/node/pull/44436)
|
|
138
|
+
* \[[`a483d1291e`](https://github.com/nodejs/node/commit/a483d1291e)] - **src**: condense experimental warning message (Rich Trott) [#45424](https://github.com/nodejs/node/pull/45424)
|
|
139
|
+
* \[[`42507e68ab`](https://github.com/nodejs/node/commit/42507e68ab)] - **src,node-api**: update `napi_is_detached_arraybuffer` (Daeyeon Jeong) [#45538](https://github.com/nodejs/node/pull/45538)
|
|
140
|
+
* \[[`f720c5880e`](https://github.com/nodejs/node/commit/f720c5880e)] - **stream**: use ArrayBufferPrototypeGetByteLength (Yagiz Nizipli) [#45528](https://github.com/nodejs/node/pull/45528)
|
|
141
|
+
* \[[`c00258e24b`](https://github.com/nodejs/node/commit/c00258e24b)] - **stream**: add primordials to adapters (Yagiz Nizipli) [#45511](https://github.com/nodejs/node/pull/45511)
|
|
142
|
+
* \[[`5274a8f7db`](https://github.com/nodejs/node/commit/5274a8f7db)] - **stream**: avoid premature close when will not emit close (Robert Nagy) [#45301](https://github.com/nodejs/node/pull/45301)
|
|
143
|
+
* \[[`496912d722`](https://github.com/nodejs/node/commit/496912d722)] - **stream**: fix typo in `adapters.js` (#45515) (Kohei Ueno) [#45515](https://github.com/nodejs/node/pull/45515)
|
|
144
|
+
* \[[`8d96e2c723`](https://github.com/nodejs/node/commit/8d96e2c723)] - **stream**: add fast path for utf8 (Yagiz Nizipli) [#45483](https://github.com/nodejs/node/pull/45483)
|
|
145
|
+
* \[[`c3fe9072c6`](https://github.com/nodejs/node/commit/c3fe9072c6)] - **test**: add trailing commas in event tests (Rich Trott) [#45466](https://github.com/nodejs/node/pull/45466)
|
|
146
|
+
* \[[`bb4c293873`](https://github.com/nodejs/node/commit/bb4c293873)] - **test**: add trailing commas in async-hooks tests (#45549) (Antoine du Hamel) [#45549](https://github.com/nodejs/node/pull/45549)
|
|
147
|
+
* \[[`731e8741b2`](https://github.com/nodejs/node/commit/731e8741b2)] - **test**: add trailing commas in addons test (#45548) (Antoine du Hamel) [#45548](https://github.com/nodejs/node/pull/45548)
|
|
148
|
+
* \[[`d6c68ce346`](https://github.com/nodejs/node/commit/d6c68ce346)] - **test**: add trailing commas in `test/common` (#45550) (Antoine du Hamel) [#45550](https://github.com/nodejs/node/pull/45550)
|
|
149
|
+
* \[[`c9ba0b738d`](https://github.com/nodejs/node/commit/c9ba0b738d)] - **test**: revise pull request guide text about code (Rich Trott) [#45519](https://github.com/nodejs/node/pull/45519)
|
|
150
|
+
* \[[`076e9eeaeb`](https://github.com/nodejs/node/commit/076e9eeaeb)] - **test**: fix test-trace-gc-flag (Tony Gorez) [#45230](https://github.com/nodejs/node/pull/45230)
|
|
151
|
+
* \[[`72f2df2802`](https://github.com/nodejs/node/commit/72f2df2802)] - **test**: adapt test-v8-stats for V8 update (Michaël Zasso) [#45230](https://github.com/nodejs/node/pull/45230)
|
|
152
|
+
* \[[`b491504d77`](https://github.com/nodejs/node/commit/b491504d77)] - **test**: enable the WPT for `structuredClone` (Daeyeon Jeong) [#45482](https://github.com/nodejs/node/pull/45482)
|
|
153
|
+
* \[[`1277ffcb55`](https://github.com/nodejs/node/commit/1277ffcb55)] - **test**: add lint rule to enforce trailing commas (Antoine du Hamel) [#45468](https://github.com/nodejs/node/pull/45468)
|
|
154
|
+
* \[[`45b54eec55`](https://github.com/nodejs/node/commit/45b54eec55)] - **test**: update uses of \_jabber.\_tcp.google.com (Colin Ihrig) [#45451](https://github.com/nodejs/node/pull/45451)
|
|
155
|
+
* \[[`51213c24bd`](https://github.com/nodejs/node/commit/51213c24bd)] - **test**: add test to validate changelogs for releases (Richard Lau) [#45325](https://github.com/nodejs/node/pull/45325)
|
|
156
|
+
* \[[`00a3b5f7d5`](https://github.com/nodejs/node/commit/00a3b5f7d5)] - **test**: remove flaky designation for test-worker-http2-stream-terminate (Rich Trott) [#45438](https://github.com/nodejs/node/pull/45438)
|
|
157
|
+
* \[[`4fe5c4e167`](https://github.com/nodejs/node/commit/4fe5c4e167)] - **test**: fix flaky test-repl-sigint-nested-eval (Rich Trott) [#45354](https://github.com/nodejs/node/pull/45354)
|
|
158
|
+
* \[[`f79dd65333`](https://github.com/nodejs/node/commit/f79dd65333)] - **test**: add a test to ensure the correctness of timezone upgrades (Darshan Sen) [#45299](https://github.com/nodejs/node/pull/45299)
|
|
159
|
+
* \[[`016749ba5d`](https://github.com/nodejs/node/commit/016749ba5d)] - **test\_runner**: add initial TAP parser (Wassim Chegham) [#43525](https://github.com/nodejs/node/pull/43525)
|
|
160
|
+
* \[[`e9760b4ae8`](https://github.com/nodejs/node/commit/e9760b4ae8)] - **test\_runner**: support watch mode (Moshe Atlow) [#45214](https://github.com/nodejs/node/pull/45214)
|
|
161
|
+
* \[[`160c88ec77`](https://github.com/nodejs/node/commit/160c88ec77)] - **tools**: have test-asan use ubuntu-20.04 (Filip Skokan) [#45581](https://github.com/nodejs/node/pull/45581)
|
|
162
|
+
* \[[`81f63c2b28`](https://github.com/nodejs/node/commit/81f63c2b28)] - **tools**: update eslint to 8.28.0 (Node.js GitHub Bot) [#45532](https://github.com/nodejs/node/pull/45532)
|
|
163
|
+
* \[[`f3f1aed01a`](https://github.com/nodejs/node/commit/f3f1aed01a)] - **tools**: add automation for updating libuv dependency (Facundo Tuesca) [#45362](https://github.com/nodejs/node/pull/45362)
|
|
164
|
+
* \[[`d4f30f07b3`](https://github.com/nodejs/node/commit/d4f30f07b3)] - **tools**: add missing step in update-base64.sh script (Facundo Tuesca) [#45509](https://github.com/nodejs/node/pull/45509)
|
|
165
|
+
* \[[`cca20330cf`](https://github.com/nodejs/node/commit/cca20330cf)] - **tools**: update certdata.txt (Luigi Pinca) [#45490](https://github.com/nodejs/node/pull/45490)
|
|
166
|
+
* \[[`39e873139b`](https://github.com/nodejs/node/commit/39e873139b)] - **tools**: include current release in the list of released versions (Antoine du Hamel) [#45463](https://github.com/nodejs/node/pull/45463)
|
|
167
|
+
* \[[`8a34ef4897`](https://github.com/nodejs/node/commit/8a34ef4897)] - **tools**: update lint-md-dependencies to rollup\@3.3.0 (Node.js GitHub Bot) [#45442](https://github.com/nodejs/node/pull/45442)
|
|
168
|
+
* \[[`bb36acff42`](https://github.com/nodejs/node/commit/bb36acff42)] - **tools**: do not run CQ on non-fast-tracked PRs open for less than 2 days (Moshe Atlow) [#45407](https://github.com/nodejs/node/pull/45407)
|
|
169
|
+
* \[[`93bc2ba509`](https://github.com/nodejs/node/commit/93bc2ba509)] - **tools**: simplify .eslintrc.js (Rich Trott) [#45397](https://github.com/nodejs/node/pull/45397)
|
|
170
|
+
* \[[`b7f8a44c64`](https://github.com/nodejs/node/commit/b7f8a44c64)] - **tools**: simplify regex in ESLint config (Rich Trott) [#45399](https://github.com/nodejs/node/pull/45399)
|
|
171
|
+
* \[[`36bf87fabf`](https://github.com/nodejs/node/commit/36bf87fabf)] - **tools**: enable jsdoc/require-property-description rule (Rich Trott) [#45370](https://github.com/nodejs/node/pull/45370)
|
|
172
|
+
* \[[`7c6281a7d2`](https://github.com/nodejs/node/commit/7c6281a7d2)] - **tools**: dynamically determine parallelism on GitHub Actions macOS (Rich Trott) [#45350](https://github.com/nodejs/node/pull/45350)
|
|
173
|
+
* \[[`f441b04c11`](https://github.com/nodejs/node/commit/f441b04c11)] - **trace\_events**: add new categories (theanarkh) [#45266](https://github.com/nodejs/node/pull/45266)
|
|
174
|
+
* \[[`6bdd2c3884`](https://github.com/nodejs/node/commit/6bdd2c3884)] - _**Revert**_ "**url**: improve port validation" (Rich Trott) [#45517](https://github.com/nodejs/node/pull/45517)
|
|
175
|
+
* \[[`bbba42fcb2`](https://github.com/nodejs/node/commit/bbba42fcb2)] - **url**: remove unnecessary object call to kFormat (Yagiz Nizipli) [#45492](https://github.com/nodejs/node/pull/45492)
|
|
176
|
+
* \[[`7c79ba7b27`](https://github.com/nodejs/node/commit/7c79ba7b27)] - **util**: add fast path for utf8 encoding (Yagiz Nizipli) [#45412](https://github.com/nodejs/node/pull/45412)
|
|
177
|
+
* \[[`f86f90f839`](https://github.com/nodejs/node/commit/f86f90f839)] - **util**: improve text decoder performance (Yagiz Nizipli) [#45388](https://github.com/nodejs/node/pull/45388)
|
|
178
|
+
* \[[`3263ceb21a`](https://github.com/nodejs/node/commit/3263ceb21a)] - **watch**: watch for missing dependencies (Moshe Atlow) [#45348](https://github.com/nodejs/node/pull/45348)
|
|
179
|
+
|
|
39
180
|
<a id="19.1.0"></a>
|
|
40
181
|
|
|
41
182
|
## 2022-11-14, Version 19.1.0 (Current), @RafaelGSS
|
package/LICENSE
CHANGED
|
@@ -107,6 +107,18 @@ The externally maintained libraries used by Node.js are:
|
|
|
107
107
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
108
108
|
"""
|
|
109
109
|
|
|
110
|
+
- ittapi, located at deps/v8/third_party/ittapi, is licensed as follows:
|
|
111
|
+
"""
|
|
112
|
+
Copyright (c) 2019 Intel Corporation. All rights reserved.
|
|
113
|
+
|
|
114
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
115
|
+
|
|
116
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
117
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
118
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
119
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
120
|
+
"""
|
|
121
|
+
|
|
110
122
|
- ICU, located at deps/icu-small, is licensed as follows:
|
|
111
123
|
"""
|
|
112
124
|
UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE
|
|
@@ -1040,9 +1052,9 @@ The externally maintained libraries used by Node.js are:
|
|
|
1040
1052
|
- zlib, located at deps/zlib, is licensed as follows:
|
|
1041
1053
|
"""
|
|
1042
1054
|
zlib.h -- interface of the 'zlib' general purpose compression library
|
|
1043
|
-
version 1.2.
|
|
1055
|
+
version 1.2.13, October 13th, 2022
|
|
1044
1056
|
|
|
1045
|
-
Copyright (C) 1995-
|
|
1057
|
+
Copyright (C) 1995-2022 Jean-loup Gailly and Mark Adler
|
|
1046
1058
|
|
|
1047
1059
|
This software is provided 'as-is', without any express or implied
|
|
1048
1060
|
warranty. In no event will the authors be held liable for any damages
|
package/README.md
CHANGED
|
@@ -444,7 +444,7 @@ For information about the governance of the Node.js project, see
|
|
|
444
444
|
**Rich Trott** <<rtrott@gmail.com>> (he/him)
|
|
445
445
|
* [vdeturckheim](https://github.com/vdeturckheim) -
|
|
446
446
|
**Vladimir de Turckheim** <<vlad2t@hotmail.com>> (he/him)
|
|
447
|
-
* [
|
|
447
|
+
* [VoltrexKeyva](https://github.com/VoltrexKeyva) -
|
|
448
448
|
**Mohammed Keyvanzadeh** <<mohammadkeyvanzade94@gmail.com>> (he/him)
|
|
449
449
|
* [watilde](https://github.com/watilde) -
|
|
450
450
|
**Daijiro Wachi** <<daijiro.wachi@gmail.com>> (he/him)
|
|
@@ -690,7 +690,7 @@ maintaining the Node.js project.
|
|
|
690
690
|
**Pooja Durgad** <<Pooja.D.P@ibm.com>>
|
|
691
691
|
* [RaisinTen](https://github.com/RaisinTen) -
|
|
692
692
|
**Darshan Sen** <<raisinten@gmail.com>>
|
|
693
|
-
* [
|
|
693
|
+
* [VoltrexKeyva](https://github.com/VoltrexKeyva) -
|
|
694
694
|
**Mohammed Keyvanzadeh** <<mohammadkeyvanzade94@gmail.com>> (he/him)
|
|
695
695
|
|
|
696
696
|
Triagers follow the [Triage Guide](./doc/contributing/issues.md#triaging-a-bug-report) when
|
package/bin/node
CHANGED
|
Binary file
|
package/include/node/common.gypi
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
# Reset this number to 0 on major V8 upgrades.
|
|
38
38
|
# Increment by one for each non-official patch applied to deps/v8.
|
|
39
|
-
'v8_embedder_string': '-node.
|
|
39
|
+
'v8_embedder_string': '-node.8',
|
|
40
40
|
|
|
41
41
|
##### V8 defaults for Node.js #####
|
|
42
42
|
|
|
@@ -283,11 +283,7 @@
|
|
|
283
283
|
'-std:c++17'
|
|
284
284
|
],
|
|
285
285
|
'BufferSecurityCheck': 'true',
|
|
286
|
-
'
|
|
287
|
-
['_toolset=="target"', {
|
|
288
|
-
'DebugInformationFormat': 1 # /Z7 embed info in .obj files
|
|
289
|
-
}],
|
|
290
|
-
],
|
|
286
|
+
'DebugInformationFormat': 1, # /Z7 embed info in .obj files
|
|
291
287
|
'ExceptionHandling': 0, # /EHsc
|
|
292
288
|
'MultiProcessorCompilation': 'true',
|
|
293
289
|
'StringPooling': 'true', # pool string literals
|
package/include/node/config.gypi
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Do not edit. Generated by the configure script.
|
|
2
2
|
{ 'target_defaults': {'cflags': ['-msign-return-address=all'], 'default_configuration': 'Release', 'defines': ['NODE_OPENSSL_CONF_NAME=nodejs_conf', 'NODE_OPENSSL_HAS_QUIC'], 'include_dirs': [], 'libraries': []},
|
|
3
|
-
'variables': { '
|
|
3
|
+
'variables': { 'arm_fpu': 'neon',
|
|
4
|
+
'asan': 0,
|
|
4
5
|
'coverage': 'false',
|
|
5
6
|
'dcheck_always_on': 0,
|
|
6
7
|
'debug_nghttp2': 'false',
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
'node_byteorder': 'little',
|
|
27
28
|
'node_debug_lib': 'false',
|
|
28
29
|
'node_enable_d8': 'false',
|
|
30
|
+
'node_enable_v8_vtunejit': 'false',
|
|
29
31
|
'node_fipsinstall': 'false',
|
|
30
32
|
'node_install_corepack': 'true',
|
|
31
33
|
'node_install_npm': 'true',
|
|
@@ -124,6 +126,7 @@
|
|
|
124
126
|
'lib/internal/error_serdes.js',
|
|
125
127
|
'lib/internal/errors.js',
|
|
126
128
|
'lib/internal/event_target.js',
|
|
129
|
+
'lib/internal/file.js',
|
|
127
130
|
'lib/internal/fixed_queue.js',
|
|
128
131
|
'lib/internal/freelist.js',
|
|
129
132
|
'lib/internal/freeze_intrinsics.js',
|
|
@@ -251,6 +254,9 @@
|
|
|
251
254
|
'lib/internal/test_runner/harness.js',
|
|
252
255
|
'lib/internal/test_runner/mock.js',
|
|
253
256
|
'lib/internal/test_runner/runner.js',
|
|
257
|
+
'lib/internal/test_runner/tap_checker.js',
|
|
258
|
+
'lib/internal/test_runner/tap_lexer.js',
|
|
259
|
+
'lib/internal/test_runner/tap_parser.js',
|
|
254
260
|
'lib/internal/test_runner/tap_stream.js',
|
|
255
261
|
'lib/internal/test_runner/test.js',
|
|
256
262
|
'lib/internal/test_runner/utils.js',
|
package/include/node/node_api.h
CHANGED
|
@@ -208,11 +208,11 @@ napi_get_uv_event_loop(napi_env env, struct uv_loop_s** loop);
|
|
|
208
208
|
NAPI_EXTERN napi_status NAPI_CDECL napi_fatal_exception(napi_env env,
|
|
209
209
|
napi_value err);
|
|
210
210
|
|
|
211
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
212
|
-
|
|
211
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
212
|
+
napi_add_env_cleanup_hook(napi_env env, napi_cleanup_hook fun, void* arg);
|
|
213
213
|
|
|
214
|
-
NAPI_EXTERN napi_status NAPI_CDECL
|
|
215
|
-
|
|
214
|
+
NAPI_EXTERN napi_status NAPI_CDECL
|
|
215
|
+
napi_remove_env_cleanup_hook(napi_env env, napi_cleanup_hook fun, void* arg);
|
|
216
216
|
|
|
217
217
|
NAPI_EXTERN napi_status NAPI_CDECL
|
|
218
218
|
napi_open_callback_scope(napi_env env,
|
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
typedef struct napi_callback_scope__* napi_callback_scope;
|
|
7
7
|
typedef struct napi_async_context__* napi_async_context;
|
|
8
8
|
typedef struct napi_async_work__* napi_async_work;
|
|
9
|
+
|
|
10
|
+
#if NAPI_VERSION >= 3
|
|
11
|
+
typedef void(NAPI_CDECL* napi_cleanup_hook)(void* arg);
|
|
12
|
+
#endif // NAPI_VERSION >= 3
|
|
13
|
+
|
|
9
14
|
#if NAPI_VERSION >= 4
|
|
10
15
|
typedef struct napi_threadsafe_function__* napi_threadsafe_function;
|
|
11
16
|
#endif // NAPI_VERSION >= 4
|
|
@@ -240,6 +240,11 @@ class V8_EXPORT ArrayBuffer : public Object {
|
|
|
240
240
|
*/
|
|
241
241
|
bool IsDetachable() const;
|
|
242
242
|
|
|
243
|
+
/**
|
|
244
|
+
* Returns true if this ArrayBuffer has been detached.
|
|
245
|
+
*/
|
|
246
|
+
bool WasDetached() const;
|
|
247
|
+
|
|
243
248
|
/**
|
|
244
249
|
* Detaches this ArrayBuffer and all its views (typed arrays).
|
|
245
250
|
* Detaching sets the byte length of the buffer and all typed arrays to zero,
|
|
@@ -253,6 +258,9 @@ class V8_EXPORT ArrayBuffer : public Object {
|
|
|
253
258
|
* pointer coordinates the lifetime management of the internal storage
|
|
254
259
|
* with any live ArrayBuffers on the heap, even across isolates. The embedder
|
|
255
260
|
* should not attempt to manage lifetime of the storage through other means.
|
|
261
|
+
*
|
|
262
|
+
* The returned shared pointer will not be empty, even if the ArrayBuffer has
|
|
263
|
+
* been detached. Use |WasDetached| to tell if it has been detached instead.
|
|
256
264
|
*/
|
|
257
265
|
std::shared_ptr<BackingStore> GetBackingStore();
|
|
258
266
|
|
|
@@ -290,6 +290,7 @@ class V8_EXPORT Context : public Data {
|
|
|
290
290
|
Local<Function> after_hook,
|
|
291
291
|
Local<Function> resolve_hook);
|
|
292
292
|
|
|
293
|
+
bool HasTemplateLiteralObject(Local<Value> object);
|
|
293
294
|
/**
|
|
294
295
|
* Stack-allocated class which sets the execution context for all
|
|
295
296
|
* operations executed within a local scope.
|
|
@@ -182,7 +182,7 @@ constexpr size_t kSandboxSizeLog2 = 37; // 128 GB
|
|
|
182
182
|
#else
|
|
183
183
|
// Everywhere else use a 1TB sandbox.
|
|
184
184
|
constexpr size_t kSandboxSizeLog2 = 40; // 1 TB
|
|
185
|
-
#endif //
|
|
185
|
+
#endif // V8_TARGET_OS_ANDROID
|
|
186
186
|
constexpr size_t kSandboxSize = 1ULL << kSandboxSizeLog2;
|
|
187
187
|
|
|
188
188
|
// Required alignment of the sandbox. For simplicity, we require the
|
|
@@ -223,6 +223,21 @@ static_assert(kSandboxMinimumReservationSize > kPtrComprCageReservationSize,
|
|
|
223
223
|
"The minimum reservation size for a sandbox must be larger than "
|
|
224
224
|
"the pointer compression cage contained within it.");
|
|
225
225
|
|
|
226
|
+
// The maximum buffer size allowed inside the sandbox. This is mostly dependent
|
|
227
|
+
// on the size of the guard regions around the sandbox: an attacker must not be
|
|
228
|
+
// able to construct a buffer that appears larger than the guard regions and
|
|
229
|
+
// thereby "reach out of" the sandbox.
|
|
230
|
+
constexpr size_t kMaxSafeBufferSizeForSandbox = 32ULL * GB - 1;
|
|
231
|
+
static_assert(kMaxSafeBufferSizeForSandbox <= kSandboxGuardRegionSize,
|
|
232
|
+
"The maximum allowed buffer size must not be larger than the "
|
|
233
|
+
"sandbox's guard regions");
|
|
234
|
+
|
|
235
|
+
constexpr size_t kBoundedSizeShift = 29;
|
|
236
|
+
static_assert(1ULL << (64 - kBoundedSizeShift) ==
|
|
237
|
+
kMaxSafeBufferSizeForSandbox + 1,
|
|
238
|
+
"The maximum size of a BoundedSize must be synchronized with the "
|
|
239
|
+
"kMaxSafeBufferSizeForSandbox");
|
|
240
|
+
|
|
226
241
|
#endif // V8_ENABLE_SANDBOX
|
|
227
242
|
|
|
228
243
|
#ifdef V8_COMPRESS_POINTERS
|
|
@@ -536,6 +536,7 @@ class V8_EXPORT Isolate {
|
|
|
536
536
|
kFunctionPrototypeCaller = 114,
|
|
537
537
|
kTurboFanOsrCompileStarted = 115,
|
|
538
538
|
kAsyncStackTaggingCreateTaskCall = 116,
|
|
539
|
+
kDurationFormat = 117,
|
|
539
540
|
|
|
540
541
|
// If you add new values here, you'll also need to update Chromium's:
|
|
541
542
|
// web_feature.mojom, use_counter_callback.cc, and enums.xml. V8 changes to
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
// NOTE these macros are used by some of the tool scripts and the build
|
|
10
10
|
// system so their names cannot be changed without changing the scripts.
|
|
11
11
|
#define V8_MAJOR_VERSION 10
|
|
12
|
-
#define V8_MINOR_VERSION
|
|
13
|
-
#define V8_BUILD_NUMBER
|
|
12
|
+
#define V8_MINOR_VERSION 8
|
|
13
|
+
#define V8_BUILD_NUMBER 168
|
|
14
14
|
#define V8_PATCH_LEVEL 20
|
|
15
15
|
|
|
16
16
|
// Use 1 for candidates and 0 otherwise.
|
package/include/node/v8config.h
CHANGED
|
@@ -579,6 +579,37 @@ path. Add it with -I<path> to the command line
|
|
|
579
579
|
#define V8_NO_UNIQUE_ADDRESS /* NOT SUPPORTED */
|
|
580
580
|
#endif
|
|
581
581
|
|
|
582
|
+
// Marks a type as being eligible for the "trivial" ABI despite having a
|
|
583
|
+
// non-trivial destructor or copy/move constructor. Such types can be relocated
|
|
584
|
+
// after construction by simply copying their memory, which makes them eligible
|
|
585
|
+
// to be passed in registers. The canonical example is std::unique_ptr.
|
|
586
|
+
//
|
|
587
|
+
// Use with caution; this has some subtle effects on constructor/destructor
|
|
588
|
+
// ordering and will be very incorrect if the type relies on its address
|
|
589
|
+
// remaining constant. When used as a function argument (by value), the value
|
|
590
|
+
// may be constructed in the caller's stack frame, passed in a register, and
|
|
591
|
+
// then used and destructed in the callee's stack frame. A similar thing can
|
|
592
|
+
// occur when values are returned.
|
|
593
|
+
//
|
|
594
|
+
// TRIVIAL_ABI is not needed for types which have a trivial destructor and
|
|
595
|
+
// copy/move constructors, since those are automatically trivial by the ABI
|
|
596
|
+
// spec.
|
|
597
|
+
//
|
|
598
|
+
// It is also not likely to be effective on types too large to be passed in one
|
|
599
|
+
// or two registers on typical target ABIs.
|
|
600
|
+
//
|
|
601
|
+
// See also:
|
|
602
|
+
// https://clang.llvm.org/docs/AttributeReference.html#trivial-abi
|
|
603
|
+
// https://libcxx.llvm.org/docs/DesignDocs/UniquePtrTrivialAbi.html
|
|
604
|
+
#if defined(__clang__) && defined(__has_attribute)
|
|
605
|
+
#if __has_attribute(trivial_abi)
|
|
606
|
+
#define V8_TRIVIAL_ABI [[clang::trivial_abi]]
|
|
607
|
+
#endif // __has_attribute(trivial_abi)
|
|
608
|
+
#endif // defined(__clang__) && defined(__has_attribute)
|
|
609
|
+
#if !defined(V8_TRIVIAL_ABI)
|
|
610
|
+
#define V8_TRIVIAL_ABI
|
|
611
|
+
#endif //!defined(V8_TRIVIAL_ABI)
|
|
612
|
+
|
|
582
613
|
// Helper macro to define no_sanitize attributes only with clang.
|
|
583
614
|
#if defined(__clang__) && defined(__has_attribute)
|
|
584
615
|
#if __has_attribute(no_sanitize)
|
package/include/node/zconf.h
CHANGED
|
@@ -50,6 +50,9 @@
|
|
|
50
50
|
# define crc32 z_crc32
|
|
51
51
|
# define crc32_combine z_crc32_combine
|
|
52
52
|
# define crc32_combine64 z_crc32_combine64
|
|
53
|
+
# define crc32_combine_gen z_crc32_combine_gen
|
|
54
|
+
# define crc32_combine_gen64 z_crc32_combine_gen64
|
|
55
|
+
# define crc32_combine_op z_crc32_combine_op
|
|
53
56
|
# define crc32_z z_crc32_z
|
|
54
57
|
# define deflate z_deflate
|
|
55
58
|
# define deflateBound z_deflateBound
|
|
@@ -361,6 +364,9 @@
|
|
|
361
364
|
# ifdef FAR
|
|
362
365
|
# undef FAR
|
|
363
366
|
# endif
|
|
367
|
+
# ifndef WIN32_LEAN_AND_MEAN
|
|
368
|
+
# define WIN32_LEAN_AND_MEAN
|
|
369
|
+
# endif
|
|
364
370
|
# include <windows.h>
|
|
365
371
|
/* No need for _export, use ZLIB.DEF instead. */
|
|
366
372
|
/* For complete Windows compatibility, use WINAPI, not __stdcall. */
|
|
@@ -482,11 +488,18 @@ typedef uLong FAR uLongf;
|
|
|
482
488
|
# undef _LARGEFILE64_SOURCE
|
|
483
489
|
#endif
|
|
484
490
|
|
|
485
|
-
#
|
|
486
|
-
#
|
|
491
|
+
#ifndef Z_HAVE_UNISTD_H
|
|
492
|
+
# ifdef __WATCOMC__
|
|
493
|
+
# define Z_HAVE_UNISTD_H
|
|
494
|
+
# endif
|
|
495
|
+
#endif
|
|
496
|
+
#ifndef Z_HAVE_UNISTD_H
|
|
497
|
+
# if defined(_LARGEFILE64_SOURCE) && !defined(_WIN32)
|
|
498
|
+
# define Z_HAVE_UNISTD_H
|
|
499
|
+
# endif
|
|
487
500
|
#endif
|
|
488
501
|
#ifndef Z_SOLO
|
|
489
|
-
# if defined(Z_HAVE_UNISTD_H)
|
|
502
|
+
# if defined(Z_HAVE_UNISTD_H)
|
|
490
503
|
# include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
|
|
491
504
|
# ifdef VMS
|
|
492
505
|
# include <unixio.h> /* for off_t */
|
package/include/node/zlib.h
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* zlib.h -- interface of the 'zlib' general purpose compression library
|
|
2
|
-
version 1.2.
|
|
2
|
+
version 1.2.13, October 13th, 2022
|
|
3
3
|
|
|
4
|
-
Copyright (C) 1995-
|
|
4
|
+
Copyright (C) 1995-2022 Jean-loup Gailly and Mark Adler
|
|
5
5
|
|
|
6
6
|
This software is provided 'as-is', without any express or implied
|
|
7
7
|
warranty. In no event will the authors be held liable for any damages
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
extern "C" {
|
|
38
38
|
#endif
|
|
39
39
|
|
|
40
|
-
#define ZLIB_VERSION "1.2.
|
|
41
|
-
#define ZLIB_VERNUM
|
|
40
|
+
#define ZLIB_VERSION "1.2.13"
|
|
41
|
+
#define ZLIB_VERNUM 0x12d0
|
|
42
42
|
#define ZLIB_VER_MAJOR 1
|
|
43
43
|
#define ZLIB_VER_MINOR 2
|
|
44
|
-
#define ZLIB_VER_REVISION
|
|
44
|
+
#define ZLIB_VER_REVISION 13
|
|
45
45
|
#define ZLIB_VER_SUBREVISION 0
|
|
46
46
|
|
|
47
47
|
/*
|
|
@@ -276,7 +276,7 @@ ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
|
|
|
276
276
|
== 0), or after each call of deflate(). If deflate returns Z_OK and with
|
|
277
277
|
zero avail_out, it must be called again after making room in the output
|
|
278
278
|
buffer because there might be more output pending. See deflatePending(),
|
|
279
|
-
which can be used if desired to determine whether or not there is more
|
|
279
|
+
which can be used if desired to determine whether or not there is more output
|
|
280
280
|
in that case.
|
|
281
281
|
|
|
282
282
|
Normally the parameter flush is set to Z_NO_FLUSH, which allows deflate to
|
|
@@ -359,7 +359,6 @@ ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
|
|
|
359
359
|
continue compressing.
|
|
360
360
|
*/
|
|
361
361
|
|
|
362
|
-
|
|
363
362
|
ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm));
|
|
364
363
|
/*
|
|
365
364
|
All dynamically allocated data structures for this stream are freed.
|
|
@@ -543,8 +542,7 @@ ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp strm,
|
|
|
543
542
|
int strategy));
|
|
544
543
|
|
|
545
544
|
This is another version of deflateInit with more compression options. The
|
|
546
|
-
fields
|
|
547
|
-
caller.
|
|
545
|
+
fields zalloc, zfree and opaque must be initialized before by the caller.
|
|
548
546
|
|
|
549
547
|
The method parameter is the compression method. It must be Z_DEFLATED in
|
|
550
548
|
this version of the library.
|
|
@@ -661,7 +659,7 @@ ZEXTERN int ZEXPORT deflateGetDictionary OF((z_streamp strm,
|
|
|
661
659
|
to dictionary. dictionary must have enough space, where 32768 bytes is
|
|
662
660
|
always enough. If deflateGetDictionary() is called with dictionary equal to
|
|
663
661
|
Z_NULL, then only the dictionary length is returned, and nothing is copied.
|
|
664
|
-
|
|
662
|
+
Similarly, if dictLength is Z_NULL, then it is not set.
|
|
665
663
|
|
|
666
664
|
deflateGetDictionary() may return a length less than the window size, even
|
|
667
665
|
when more than the window size in input has been provided. It may return up
|
|
@@ -712,11 +710,12 @@ ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm,
|
|
|
712
710
|
used to switch between compression and straight copy of the input data, or
|
|
713
711
|
to switch to a different kind of input data requiring a different strategy.
|
|
714
712
|
If the compression approach (which is a function of the level) or the
|
|
715
|
-
strategy is changed, and if
|
|
716
|
-
|
|
717
|
-
level and strategy using deflate(strm, Z_BLOCK).
|
|
718
|
-
for the compression levels 0, 1..3, and 4..9
|
|
719
|
-
and strategy will take effect at the next call
|
|
713
|
+
strategy is changed, and if there have been any deflate() calls since the
|
|
714
|
+
state was initialized or reset, then the input available so far is
|
|
715
|
+
compressed with the old level and strategy using deflate(strm, Z_BLOCK).
|
|
716
|
+
There are three approaches for the compression levels 0, 1..3, and 4..9
|
|
717
|
+
respectively. The new level and strategy will take effect at the next call
|
|
718
|
+
of deflate().
|
|
720
719
|
|
|
721
720
|
If a deflate(strm, Z_BLOCK) is performed by deflateParams(), and it does
|
|
722
721
|
not have enough output space to complete, then the parameter change will not
|
|
@@ -865,9 +864,11 @@ ZEXTERN int ZEXPORT inflateInit2 OF((z_streamp strm,
|
|
|
865
864
|
detection, or add 16 to decode only the gzip format (the zlib format will
|
|
866
865
|
return a Z_DATA_ERROR). If a gzip stream is being decoded, strm->adler is a
|
|
867
866
|
CRC-32 instead of an Adler-32. Unlike the gunzip utility and gzread() (see
|
|
868
|
-
below), inflate() will not automatically decode concatenated gzip
|
|
869
|
-
inflate() will return Z_STREAM_END at the end of the gzip
|
|
870
|
-
would need to be reset to continue decoding a subsequent gzip
|
|
867
|
+
below), inflate() will *not* automatically decode concatenated gzip members.
|
|
868
|
+
inflate() will return Z_STREAM_END at the end of the gzip member. The state
|
|
869
|
+
would need to be reset to continue decoding a subsequent gzip member. This
|
|
870
|
+
*must* be done if there is more data after a gzip member, in order for the
|
|
871
|
+
decompression to be compliant with the gzip standard (RFC 1952).
|
|
871
872
|
|
|
872
873
|
inflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was not enough
|
|
873
874
|
memory, Z_VERSION_ERROR if the zlib library version is incompatible with the
|
|
@@ -913,7 +914,7 @@ ZEXTERN int ZEXPORT inflateGetDictionary OF((z_streamp strm,
|
|
|
913
914
|
to dictionary. dictionary must have enough space, where 32768 bytes is
|
|
914
915
|
always enough. If inflateGetDictionary() is called with dictionary equal to
|
|
915
916
|
Z_NULL, then only the dictionary length is returned, and nothing is copied.
|
|
916
|
-
|
|
917
|
+
Similarly, if dictLength is Z_NULL, then it is not set.
|
|
917
918
|
|
|
918
919
|
inflateGetDictionary returns Z_OK on success, or Z_STREAM_ERROR if the
|
|
919
920
|
stream state is inconsistent.
|
|
@@ -1302,14 +1303,14 @@ typedef struct gzFile_s *gzFile; /* semi-opaque gzip file descriptor */
|
|
|
1302
1303
|
/*
|
|
1303
1304
|
ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode));
|
|
1304
1305
|
|
|
1305
|
-
|
|
1306
|
-
in fopen ("rb" or "wb")
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
for
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
the gzip format.
|
|
1306
|
+
Open the gzip (.gz) file at path for reading and decompressing, or
|
|
1307
|
+
compressing and writing. The mode parameter is as in fopen ("rb" or "wb")
|
|
1308
|
+
but can also include a compression level ("wb9") or a strategy: 'f' for
|
|
1309
|
+
filtered data as in "wb6f", 'h' for Huffman-only compression as in "wb1h",
|
|
1310
|
+
'R' for run-length encoding as in "wb1R", or 'F' for fixed code compression
|
|
1311
|
+
as in "wb9F". (See the description of deflateInit2 for more information
|
|
1312
|
+
about the strategy parameter.) 'T' will request transparent writing or
|
|
1313
|
+
appending with no compression and not using the gzip format.
|
|
1313
1314
|
|
|
1314
1315
|
"a" can be used instead of "w" to request that the gzip stream that will
|
|
1315
1316
|
be written be appended to the file. "+" will result in an error, since
|
|
@@ -1339,9 +1340,9 @@ ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode));
|
|
|
1339
1340
|
|
|
1340
1341
|
ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode));
|
|
1341
1342
|
/*
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1343
|
+
Associate a gzFile with the file descriptor fd. File descriptors are
|
|
1344
|
+
obtained from calls like open, dup, creat, pipe or fileno (if the file has
|
|
1345
|
+
been previously opened with fopen). The mode parameter is as in gzopen.
|
|
1345
1346
|
|
|
1346
1347
|
The next call of gzclose on the returned gzFile will also close the file
|
|
1347
1348
|
descriptor fd, just like fclose(fdopen(fd, mode)) closes the file descriptor
|
|
@@ -1362,13 +1363,13 @@ ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode));
|
|
|
1362
1363
|
|
|
1363
1364
|
ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size));
|
|
1364
1365
|
/*
|
|
1365
|
-
Set the internal buffer size used by this library's functions
|
|
1366
|
-
default buffer size is 8192 bytes. This function must be called
|
|
1367
|
-
gzopen() or gzdopen(), and before any other calls that read or write
|
|
1368
|
-
file. The buffer memory allocation is always deferred to the first read
|
|
1369
|
-
write. Three times that size in buffer space is allocated. A larger
|
|
1370
|
-
size of, for example, 64K or 128K bytes will noticeably increase the
|
|
1371
|
-
of decompression (reading).
|
|
1366
|
+
Set the internal buffer size used by this library's functions for file to
|
|
1367
|
+
size. The default buffer size is 8192 bytes. This function must be called
|
|
1368
|
+
after gzopen() or gzdopen(), and before any other calls that read or write
|
|
1369
|
+
the file. The buffer memory allocation is always deferred to the first read
|
|
1370
|
+
or write. Three times that size in buffer space is allocated. A larger
|
|
1371
|
+
buffer size of, for example, 64K or 128K bytes will noticeably increase the
|
|
1372
|
+
speed of decompression (reading).
|
|
1372
1373
|
|
|
1373
1374
|
The new buffer size also affects the maximum length for gzprintf().
|
|
1374
1375
|
|
|
@@ -1378,9 +1379,9 @@ ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size));
|
|
|
1378
1379
|
|
|
1379
1380
|
ZEXTERN int ZEXPORT gzsetparams OF((gzFile file, int level, int strategy));
|
|
1380
1381
|
/*
|
|
1381
|
-
Dynamically update the compression level
|
|
1382
|
-
of deflateInit2 for the meaning of these parameters.
|
|
1383
|
-
data is flushed before the parameter
|
|
1382
|
+
Dynamically update the compression level and strategy for file. See the
|
|
1383
|
+
description of deflateInit2 for the meaning of these parameters. Previously
|
|
1384
|
+
provided data is flushed before applying the parameter changes.
|
|
1384
1385
|
|
|
1385
1386
|
gzsetparams returns Z_OK if success, Z_STREAM_ERROR if the file was not
|
|
1386
1387
|
opened for writing, Z_ERRNO if there is an error writing the flushed data,
|
|
@@ -1389,7 +1390,7 @@ ZEXTERN int ZEXPORT gzsetparams OF((gzFile file, int level, int strategy));
|
|
|
1389
1390
|
|
|
1390
1391
|
ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
|
|
1391
1392
|
/*
|
|
1392
|
-
|
|
1393
|
+
Read and decompress up to len uncompressed bytes from file into buf. If
|
|
1393
1394
|
the input file is not in gzip format, gzread copies the given number of
|
|
1394
1395
|
bytes into the buffer directly from the file.
|
|
1395
1396
|
|
|
@@ -1420,11 +1421,11 @@ ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
|
|
|
1420
1421
|
ZEXTERN z_size_t ZEXPORT gzfread OF((voidp buf, z_size_t size, z_size_t nitems,
|
|
1421
1422
|
gzFile file));
|
|
1422
1423
|
/*
|
|
1423
|
-
Read up to nitems items of size size from file
|
|
1424
|
-
as gzread() does. This duplicates the interface of
|
|
1425
|
-
size_t request and return types. If the library
|
|
1426
|
-
z_size_t is identical to size_t. If not, then z_size_t
|
|
1427
|
-
integer type that can contain a pointer.
|
|
1424
|
+
Read and decompress up to nitems items of size size from file into buf,
|
|
1425
|
+
otherwise operating as gzread() does. This duplicates the interface of
|
|
1426
|
+
stdio's fread(), with size_t request and return types. If the library
|
|
1427
|
+
defines size_t, then z_size_t is identical to size_t. If not, then z_size_t
|
|
1428
|
+
is an unsigned integer type that can contain a pointer.
|
|
1428
1429
|
|
|
1429
1430
|
gzfread() returns the number of full items read of size size, or zero if
|
|
1430
1431
|
the end of the file was reached and a full item could not be read, or if
|
|
@@ -1435,26 +1436,24 @@ ZEXTERN z_size_t ZEXPORT gzfread OF((voidp buf, z_size_t size, z_size_t nitems,
|
|
|
1435
1436
|
|
|
1436
1437
|
In the event that the end of file is reached and only a partial item is
|
|
1437
1438
|
available at the end, i.e. the remaining uncompressed data length is not a
|
|
1438
|
-
multiple of size, then the final partial item is
|
|
1439
|
+
multiple of size, then the final partial item is nevertheless read into buf
|
|
1439
1440
|
and the end-of-file flag is set. The length of the partial item read is not
|
|
1440
1441
|
provided, but could be inferred from the result of gztell(). This behavior
|
|
1441
1442
|
is the same as the behavior of fread() implementations in common libraries,
|
|
1442
1443
|
but it prevents the direct use of gzfread() to read a concurrently written
|
|
1443
|
-
file,
|
|
1444
|
+
file, resetting and retrying on end-of-file, when size is not 1.
|
|
1444
1445
|
*/
|
|
1445
1446
|
|
|
1446
|
-
ZEXTERN int ZEXPORT gzwrite OF((gzFile file,
|
|
1447
|
-
voidpc buf, unsigned len));
|
|
1447
|
+
ZEXTERN int ZEXPORT gzwrite OF((gzFile file, voidpc buf, unsigned len));
|
|
1448
1448
|
/*
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
error.
|
|
1449
|
+
Compress and write the len uncompressed bytes at buf to file. gzwrite
|
|
1450
|
+
returns the number of uncompressed bytes written or 0 in case of error.
|
|
1452
1451
|
*/
|
|
1453
1452
|
|
|
1454
1453
|
ZEXTERN z_size_t ZEXPORT gzfwrite OF((voidpc buf, z_size_t size,
|
|
1455
1454
|
z_size_t nitems, gzFile file));
|
|
1456
1455
|
/*
|
|
1457
|
-
|
|
1456
|
+
Compress and write nitems items of size size from buf to file, duplicating
|
|
1458
1457
|
the interface of stdio's fwrite(), with size_t request and return types. If
|
|
1459
1458
|
the library defines size_t, then z_size_t is identical to size_t. If not,
|
|
1460
1459
|
then z_size_t is an unsigned integer type that can contain a pointer.
|
|
@@ -1467,22 +1466,22 @@ ZEXTERN z_size_t ZEXPORT gzfwrite OF((voidpc buf, z_size_t size,
|
|
|
1467
1466
|
|
|
1468
1467
|
ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...));
|
|
1469
1468
|
/*
|
|
1470
|
-
|
|
1471
|
-
control of the format
|
|
1469
|
+
Convert, format, compress, and write the arguments (...) to file under
|
|
1470
|
+
control of the string format, as in fprintf. gzprintf returns the number of
|
|
1472
1471
|
uncompressed bytes actually written, or a negative zlib error code in case
|
|
1473
1472
|
of error. The number of uncompressed bytes written is limited to 8191, or
|
|
1474
1473
|
one less than the buffer size given to gzbuffer(). The caller should assure
|
|
1475
1474
|
that this limit is not exceeded. If it is exceeded, then gzprintf() will
|
|
1476
1475
|
return an error (0) with nothing written. In this case, there may also be a
|
|
1477
1476
|
buffer overflow with unpredictable consequences, which is possible only if
|
|
1478
|
-
zlib was compiled with the insecure functions sprintf() or vsprintf()
|
|
1477
|
+
zlib was compiled with the insecure functions sprintf() or vsprintf(),
|
|
1479
1478
|
because the secure snprintf() or vsnprintf() functions were not available.
|
|
1480
1479
|
This can be determined using zlibCompileFlags().
|
|
1481
1480
|
*/
|
|
1482
1481
|
|
|
1483
1482
|
ZEXTERN int ZEXPORT gzputs OF((gzFile file, const char *s));
|
|
1484
1483
|
/*
|
|
1485
|
-
|
|
1484
|
+
Compress and write the given null-terminated string s to file, excluding
|
|
1486
1485
|
the terminating null character.
|
|
1487
1486
|
|
|
1488
1487
|
gzputs returns the number of characters written, or -1 in case of error.
|
|
@@ -1490,11 +1489,12 @@ ZEXTERN int ZEXPORT gzputs OF((gzFile file, const char *s));
|
|
|
1490
1489
|
|
|
1491
1490
|
ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len));
|
|
1492
1491
|
/*
|
|
1493
|
-
|
|
1494
|
-
newline character is read and transferred to buf, or an
|
|
1495
|
-
condition is encountered. If any characters are read or if len
|
|
1496
|
-
string is terminated with a null character. If no characters
|
|
1497
|
-
to an end-of-file or len
|
|
1492
|
+
Read and decompress bytes from file into buf, until len-1 characters are
|
|
1493
|
+
read, or until a newline character is read and transferred to buf, or an
|
|
1494
|
+
end-of-file condition is encountered. If any characters are read or if len
|
|
1495
|
+
is one, the string is terminated with a null character. If no characters
|
|
1496
|
+
are read due to an end-of-file or len is less than one, then the buffer is
|
|
1497
|
+
left untouched.
|
|
1498
1498
|
|
|
1499
1499
|
gzgets returns buf which is a null-terminated string, or it returns NULL
|
|
1500
1500
|
for end-of-file or in case of error. If there was an error, the contents at
|
|
@@ -1503,13 +1503,13 @@ ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len));
|
|
|
1503
1503
|
|
|
1504
1504
|
ZEXTERN int ZEXPORT gzputc OF((gzFile file, int c));
|
|
1505
1505
|
/*
|
|
1506
|
-
|
|
1506
|
+
Compress and write c, converted to an unsigned char, into file. gzputc
|
|
1507
1507
|
returns the value that was written, or -1 in case of error.
|
|
1508
1508
|
*/
|
|
1509
1509
|
|
|
1510
1510
|
ZEXTERN int ZEXPORT gzgetc OF((gzFile file));
|
|
1511
1511
|
/*
|
|
1512
|
-
|
|
1512
|
+
Read and decompress one byte from file. gzgetc returns this byte or -1
|
|
1513
1513
|
in case of end of file or error. This is implemented as a macro for speed.
|
|
1514
1514
|
As such, it does not do all of the checking the other functions do. I.e.
|
|
1515
1515
|
it does not check to see if file is NULL, nor whether the structure file
|
|
@@ -1518,8 +1518,8 @@ ZEXTERN int ZEXPORT gzgetc OF((gzFile file));
|
|
|
1518
1518
|
|
|
1519
1519
|
ZEXTERN int ZEXPORT gzungetc OF((int c, gzFile file));
|
|
1520
1520
|
/*
|
|
1521
|
-
Push
|
|
1522
|
-
|
|
1521
|
+
Push c back onto the stream for file to be read as the first character on
|
|
1522
|
+
the next read. At least one character of push-back is always allowed.
|
|
1523
1523
|
gzungetc() returns the character pushed, or -1 on failure. gzungetc() will
|
|
1524
1524
|
fail if c is -1, and may fail if a character has been pushed but not read
|
|
1525
1525
|
yet. If gzungetc is used immediately after gzopen or gzdopen, at least the
|
|
@@ -1530,9 +1530,9 @@ ZEXTERN int ZEXPORT gzungetc OF((int c, gzFile file));
|
|
|
1530
1530
|
|
|
1531
1531
|
ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush));
|
|
1532
1532
|
/*
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1533
|
+
Flush all pending output to file. The parameter flush is as in the
|
|
1534
|
+
deflate() function. The return value is the zlib error number (see function
|
|
1535
|
+
gzerror below). gzflush is only permitted when writing.
|
|
1536
1536
|
|
|
1537
1537
|
If the flush parameter is Z_FINISH, the remaining data is written and the
|
|
1538
1538
|
gzip stream is completed in the output. If gzwrite() is called again, a new
|
|
@@ -1547,8 +1547,8 @@ ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush));
|
|
|
1547
1547
|
ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file,
|
|
1548
1548
|
z_off_t offset, int whence));
|
|
1549
1549
|
|
|
1550
|
-
|
|
1551
|
-
|
|
1550
|
+
Set the starting position to offset relative to whence for the next gzread
|
|
1551
|
+
or gzwrite on file. The offset represents a number of bytes in the
|
|
1552
1552
|
uncompressed data stream. The whence parameter is defined as in lseek(2);
|
|
1553
1553
|
the value SEEK_END is not supported.
|
|
1554
1554
|
|
|
@@ -1565,18 +1565,18 @@ ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file,
|
|
|
1565
1565
|
|
|
1566
1566
|
ZEXTERN int ZEXPORT gzrewind OF((gzFile file));
|
|
1567
1567
|
/*
|
|
1568
|
-
|
|
1568
|
+
Rewind file. This function is supported only for reading.
|
|
1569
1569
|
|
|
1570
|
-
gzrewind(file) is equivalent to (int)gzseek(file, 0L, SEEK_SET)
|
|
1570
|
+
gzrewind(file) is equivalent to (int)gzseek(file, 0L, SEEK_SET).
|
|
1571
1571
|
*/
|
|
1572
1572
|
|
|
1573
1573
|
/*
|
|
1574
1574
|
ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file));
|
|
1575
1575
|
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1576
|
+
Return the starting position for the next gzread or gzwrite on file.
|
|
1577
|
+
This position represents a number of bytes in the uncompressed data stream,
|
|
1578
|
+
and is zero when starting, even if appending or reading a gzip stream from
|
|
1579
|
+
the middle of a file using gzdopen().
|
|
1580
1580
|
|
|
1581
1581
|
gztell(file) is equivalent to gzseek(file, 0L, SEEK_CUR)
|
|
1582
1582
|
*/
|
|
@@ -1584,22 +1584,22 @@ ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file));
|
|
|
1584
1584
|
/*
|
|
1585
1585
|
ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile file));
|
|
1586
1586
|
|
|
1587
|
-
|
|
1588
|
-
includes the count of bytes that precede the gzip stream, for example
|
|
1589
|
-
appending or when using gzdopen() for reading. When reading, the
|
|
1590
|
-
does not include as yet unused buffered input. This information can
|
|
1591
|
-
for a progress indicator. On error, gzoffset() returns -1.
|
|
1587
|
+
Return the current compressed (actual) read or write offset of file. This
|
|
1588
|
+
offset includes the count of bytes that precede the gzip stream, for example
|
|
1589
|
+
when appending or when using gzdopen() for reading. When reading, the
|
|
1590
|
+
offset does not include as yet unused buffered input. This information can
|
|
1591
|
+
be used for a progress indicator. On error, gzoffset() returns -1.
|
|
1592
1592
|
*/
|
|
1593
1593
|
|
|
1594
1594
|
ZEXTERN int ZEXPORT gzeof OF((gzFile file));
|
|
1595
1595
|
/*
|
|
1596
|
-
|
|
1597
|
-
false (0) otherwise. Note that the end-of-file indicator is set
|
|
1598
|
-
read tried to go past the end of the input, but came up short.
|
|
1599
|
-
just like feof(), gzeof() may return false even if there is no
|
|
1600
|
-
read, in the event that the last read request was for the exact
|
|
1601
|
-
bytes remaining in the input file. This will happen if the input
|
|
1602
|
-
is an exact multiple of the buffer size.
|
|
1596
|
+
Return true (1) if the end-of-file indicator for file has been set while
|
|
1597
|
+
reading, false (0) otherwise. Note that the end-of-file indicator is set
|
|
1598
|
+
only if the read tried to go past the end of the input, but came up short.
|
|
1599
|
+
Therefore, just like feof(), gzeof() may return false even if there is no
|
|
1600
|
+
more data to read, in the event that the last read request was for the exact
|
|
1601
|
+
number of bytes remaining in the input file. This will happen if the input
|
|
1602
|
+
file size is an exact multiple of the buffer size.
|
|
1603
1603
|
|
|
1604
1604
|
If gzeof() returns true, then the read functions will return no more data,
|
|
1605
1605
|
unless the end-of-file indicator is reset by gzclearerr() and the input file
|
|
@@ -1608,7 +1608,7 @@ ZEXTERN int ZEXPORT gzeof OF((gzFile file));
|
|
|
1608
1608
|
|
|
1609
1609
|
ZEXTERN int ZEXPORT gzdirect OF((gzFile file));
|
|
1610
1610
|
/*
|
|
1611
|
-
|
|
1611
|
+
Return true (1) if file is being copied directly while reading, or false
|
|
1612
1612
|
(0) if file is a gzip stream being decompressed.
|
|
1613
1613
|
|
|
1614
1614
|
If the input file is empty, gzdirect() will return true, since the input
|
|
@@ -1629,8 +1629,8 @@ ZEXTERN int ZEXPORT gzdirect OF((gzFile file));
|
|
|
1629
1629
|
|
|
1630
1630
|
ZEXTERN int ZEXPORT gzclose OF((gzFile file));
|
|
1631
1631
|
/*
|
|
1632
|
-
|
|
1633
|
-
|
|
1632
|
+
Flush all pending output for file, if necessary, close file and
|
|
1633
|
+
deallocate the (de)compression state. Note that once file is closed, you
|
|
1634
1634
|
cannot call gzerror with file, since its structures have been deallocated.
|
|
1635
1635
|
gzclose must not be called more than once on the same file, just as free
|
|
1636
1636
|
must not be called more than once on the same allocation.
|
|
@@ -1654,10 +1654,10 @@ ZEXTERN int ZEXPORT gzclose_w OF((gzFile file));
|
|
|
1654
1654
|
|
|
1655
1655
|
ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum));
|
|
1656
1656
|
/*
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1657
|
+
Return the error message for the last error which occurred on file.
|
|
1658
|
+
errnum is set to zlib error number. If an error occurred in the file system
|
|
1659
|
+
and not in the compression library, errnum is set to Z_ERRNO and the
|
|
1660
|
+
application may consult errno to get the exact error code.
|
|
1661
1661
|
|
|
1662
1662
|
The application must not modify the returned string. Future calls to
|
|
1663
1663
|
this function may invalidate the previously returned string. If file is
|
|
@@ -1670,7 +1670,7 @@ ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum));
|
|
|
1670
1670
|
|
|
1671
1671
|
ZEXTERN void ZEXPORT gzclearerr OF((gzFile file));
|
|
1672
1672
|
/*
|
|
1673
|
-
|
|
1673
|
+
Clear the error and end-of-file flags for file. This is analogous to the
|
|
1674
1674
|
clearerr() function in stdio. This is useful for continuing to read a gzip
|
|
1675
1675
|
file that is being written concurrently.
|
|
1676
1676
|
*/
|
|
@@ -1688,8 +1688,9 @@ ZEXTERN void ZEXPORT gzclearerr OF((gzFile file));
|
|
|
1688
1688
|
ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
|
|
1689
1689
|
/*
|
|
1690
1690
|
Update a running Adler-32 checksum with the bytes buf[0..len-1] and
|
|
1691
|
-
return the updated checksum.
|
|
1692
|
-
|
|
1691
|
+
return the updated checksum. An Adler-32 value is in the range of a 32-bit
|
|
1692
|
+
unsigned integer. If buf is Z_NULL, this function returns the required
|
|
1693
|
+
initial value for the checksum.
|
|
1693
1694
|
|
|
1694
1695
|
An Adler-32 checksum is almost as reliable as a CRC-32 but can be computed
|
|
1695
1696
|
much faster.
|
|
@@ -1722,12 +1723,13 @@ ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2,
|
|
|
1722
1723
|
negative, the result has no meaning or utility.
|
|
1723
1724
|
*/
|
|
1724
1725
|
|
|
1725
|
-
ZEXTERN uLong ZEXPORT crc32
|
|
1726
|
+
ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
|
|
1726
1727
|
/*
|
|
1727
1728
|
Update a running CRC-32 with the bytes buf[0..len-1] and return the
|
|
1728
|
-
updated CRC-32.
|
|
1729
|
-
|
|
1730
|
-
|
|
1729
|
+
updated CRC-32. A CRC-32 value is in the range of a 32-bit unsigned integer.
|
|
1730
|
+
If buf is Z_NULL, this function returns the required initial value for the
|
|
1731
|
+
crc. Pre- and post-conditioning (one's complement) is performed within this
|
|
1732
|
+
function so it shouldn't be done by the application.
|
|
1731
1733
|
|
|
1732
1734
|
Usage example:
|
|
1733
1735
|
|
|
@@ -1739,7 +1741,7 @@ ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
|
|
|
1739
1741
|
if (crc != original_crc) error();
|
|
1740
1742
|
*/
|
|
1741
1743
|
|
|
1742
|
-
ZEXTERN uLong ZEXPORT crc32_z OF((uLong
|
|
1744
|
+
ZEXTERN uLong ZEXPORT crc32_z OF((uLong crc, const Bytef *buf,
|
|
1743
1745
|
z_size_t len));
|
|
1744
1746
|
/*
|
|
1745
1747
|
Same as crc32(), but with a size_t length.
|
|
@@ -1755,6 +1757,20 @@ ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2));
|
|
|
1755
1757
|
len2.
|
|
1756
1758
|
*/
|
|
1757
1759
|
|
|
1760
|
+
/*
|
|
1761
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t len2));
|
|
1762
|
+
|
|
1763
|
+
Return the operator corresponding to length len2, to be used with
|
|
1764
|
+
crc32_combine_op().
|
|
1765
|
+
*/
|
|
1766
|
+
|
|
1767
|
+
ZEXTERN uLong ZEXPORT crc32_combine_op OF((uLong crc1, uLong crc2, uLong op));
|
|
1768
|
+
/*
|
|
1769
|
+
Give the same result as crc32_combine(), using op in place of len2. op is
|
|
1770
|
+
is generated from len2 by crc32_combine_gen(). This will be faster than
|
|
1771
|
+
crc32_combine() if the generated op is used more than once.
|
|
1772
|
+
*/
|
|
1773
|
+
|
|
1758
1774
|
|
|
1759
1775
|
/* various hacks, don't look :) */
|
|
1760
1776
|
|
|
@@ -1847,6 +1863,7 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
|
|
|
1847
1863
|
ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
|
|
1848
1864
|
ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t));
|
|
1849
1865
|
ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t));
|
|
1866
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen64 OF((z_off64_t));
|
|
1850
1867
|
#endif
|
|
1851
1868
|
|
|
1852
1869
|
#if !defined(ZLIB_INTERNAL) && defined(Z_WANT64)
|
|
@@ -1857,6 +1874,7 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
|
|
|
1857
1874
|
# define z_gzoffset z_gzoffset64
|
|
1858
1875
|
# define z_adler32_combine z_adler32_combine64
|
|
1859
1876
|
# define z_crc32_combine z_crc32_combine64
|
|
1877
|
+
# define z_crc32_combine_gen z_crc32_combine_gen64
|
|
1860
1878
|
# else
|
|
1861
1879
|
# ifdef gzopen
|
|
1862
1880
|
# undef gzopen
|
|
@@ -1881,7 +1899,15 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
|
|
|
1881
1899
|
# ifdef crc32_combine
|
|
1882
1900
|
# undef crc32_combine
|
|
1883
1901
|
# endif
|
|
1884
|
-
#
|
|
1902
|
+
# ifdef crc32_combine64
|
|
1903
|
+
# undef crc32_combine64
|
|
1904
|
+
# endif
|
|
1905
|
+
# ifdef crc32_combine_gen
|
|
1906
|
+
# undef crc32_combine_gen
|
|
1907
|
+
# endif
|
|
1908
|
+
# ifdef crc32_combine_op
|
|
1909
|
+
# undef crc32_combine_op
|
|
1910
|
+
# endif
|
|
1885
1911
|
# endif
|
|
1886
1912
|
# ifndef Z_LARGE64
|
|
1887
1913
|
ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
|
|
@@ -1890,6 +1916,7 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
|
|
|
1890
1916
|
ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
|
|
1891
1917
|
ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
|
|
1892
1918
|
ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
|
|
1919
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen64 OF((z_off_t));
|
|
1893
1920
|
# endif
|
|
1894
1921
|
#else
|
|
1895
1922
|
ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *));
|
|
@@ -1898,12 +1925,14 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
|
|
|
1898
1925
|
ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile));
|
|
1899
1926
|
ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
|
|
1900
1927
|
ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
|
|
1928
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t));
|
|
1901
1929
|
#endif
|
|
1902
1930
|
|
|
1903
1931
|
#else /* Z_SOLO */
|
|
1904
1932
|
|
|
1905
1933
|
ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
|
|
1906
1934
|
ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
|
|
1935
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t));
|
|
1907
1936
|
|
|
1908
1937
|
#endif /* !Z_SOLO */
|
|
1909
1938
|
|
|
@@ -1913,10 +1942,10 @@ ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp));
|
|
|
1913
1942
|
ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table OF((void));
|
|
1914
1943
|
ZEXTERN int ZEXPORT inflateUndermine OF((z_streamp, int));
|
|
1915
1944
|
ZEXTERN int ZEXPORT inflateValidate OF((z_streamp, int));
|
|
1916
|
-
ZEXTERN unsigned long ZEXPORT inflateCodesUsed OF
|
|
1945
|
+
ZEXTERN unsigned long ZEXPORT inflateCodesUsed OF((z_streamp));
|
|
1917
1946
|
ZEXTERN int ZEXPORT inflateResetKeep OF((z_streamp));
|
|
1918
1947
|
ZEXTERN int ZEXPORT deflateResetKeep OF((z_streamp));
|
|
1919
|
-
#if
|
|
1948
|
+
#if defined(_WIN32) && !defined(Z_SOLO)
|
|
1920
1949
|
ZEXTERN gzFile ZEXPORT gzopen_w OF((const wchar_t *path,
|
|
1921
1950
|
const char *mode));
|
|
1922
1951
|
#endif
|
package/package.json
CHANGED
package/share/doc/node/gdbinit
CHANGED
|
@@ -259,3 +259,64 @@ gdb.events.new_objfile.connect(newobj_handler)
|
|
|
259
259
|
gdb.execute("set environment V8_GDBINIT_SOURCED=1")
|
|
260
260
|
|
|
261
261
|
end
|
|
262
|
+
|
|
263
|
+
### CppGC helpers.
|
|
264
|
+
|
|
265
|
+
# Print compressed pointer.
|
|
266
|
+
define cpcp
|
|
267
|
+
call _cppgc_internal_Decompress_Compressed_Pointer((unsigned)($arg0))
|
|
268
|
+
end
|
|
269
|
+
document cpcp
|
|
270
|
+
Prints compressed pointer (raw value) after decompression.
|
|
271
|
+
Usage: cpcp compressed_pointer
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Print member.
|
|
275
|
+
define cpm
|
|
276
|
+
call _cppgc_internal_Print_Member((cppgc::internal::MemberBase*)(&$arg0))
|
|
277
|
+
end
|
|
278
|
+
document cpm
|
|
279
|
+
Prints member, compressed or not.
|
|
280
|
+
Usage: cpm member
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
# Pretty printer for cppgc::Member.
|
|
284
|
+
python
|
|
285
|
+
|
|
286
|
+
import re
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
class CppGCMemberPrinter(object):
|
|
290
|
+
"""Print cppgc Member types."""
|
|
291
|
+
|
|
292
|
+
def __init__(self, val, category, pointee_type):
|
|
293
|
+
self.val = val
|
|
294
|
+
self.category = category
|
|
295
|
+
self.pointee_type = pointee_type
|
|
296
|
+
|
|
297
|
+
def to_string(self):
|
|
298
|
+
pointer = gdb.parse_and_eval(
|
|
299
|
+
"_cppgc_internal_Print_Member((cppgc::internal::MemberBase*){})".format(
|
|
300
|
+
self.val.address))
|
|
301
|
+
return "{}Member<{}> pointing to {}".format(
|
|
302
|
+
'' if self.category is None else self.category, self.pointee_type,
|
|
303
|
+
pointer)
|
|
304
|
+
|
|
305
|
+
def display_hint(self):
|
|
306
|
+
return "{}Member<{}>".format('' if self.category is None else self.category,
|
|
307
|
+
self.pointee_type)
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
def cppgc_pretty_printers(val):
|
|
311
|
+
typename = val.type.name or val.type.tag or str(val.type)
|
|
312
|
+
regex = re.compile("^(cppgc|blink)::(Weak|Untraced)?Member<(.*)>$")
|
|
313
|
+
match = regex.match(typename)
|
|
314
|
+
if match is None:
|
|
315
|
+
return None
|
|
316
|
+
return CppGCMemberPrinter(
|
|
317
|
+
val, category=match.group(2), pointee_type=match.group(3))
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
gdb.pretty_printers.append(cppgc_pretty_printers)
|
|
321
|
+
|
|
322
|
+
end
|