Commit 28fa906
util: implement util.getSystemErrorName()
Reimplement uv.errname() as internal/util.getSystemErrorName() to
avoid the memory leaks caused by unknown error codes
and avoid calling into C++ for the error names. Also
expose it as a public API for external use.
Backport-PR-URL: #18916
PR-URL: #18186
Refs: http://docs.libuv.org/en/v1.x/errors.html#c.uv_err_name
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent 4de4c54 commit 28fa906Copy full SHA for 28fa906
File tree
Expand file treeCollapse file tree
9 files changed
+60
-23
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- internal
- src
- test
- parallel
- sequential
Expand file treeCollapse file tree
9 files changed
+60
-23
lines changedOpen diff view settings
Collapse file
+21-1Lines changed: 21 additions & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
224 | 224 | |
225 | 225 | |
226 | 226 | |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
227 | 246 | |
228 | 247 | |
229 | 248 | |
| ||
1222 | 1241 | |
1223 | 1242 | |
1224 | 1243 | |
1225 | | - |
| 1244 | + |
| 1245 | + |
1226 | 1246 | |
Collapse file
+4-3Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
| 25 | + |
| 26 | + |
| 27 | + |
26 | 28 | |
27 | 29 | |
28 | 30 | |
29 | 31 | |
30 | 32 | |
31 | 33 | |
32 | | - |
33 | 34 | |
34 | 35 | |
35 | 36 | |
| ||
271 | 272 | |
272 | 273 | |
273 | 274 | |
274 | | - |
| 275 | + |
275 | 276 | |
276 | 277 | |
277 | 278 | |
|
Collapse file
+12-1Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
7 | 6 | |
| 7 | + |
8 | 8 | |
9 | 9 | |
10 | 10 | |
| ||
207 | 207 | |
208 | 208 | |
209 | 209 | |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
210 | 220 | |
211 | 221 | |
212 | 222 | |
| ||
297 | 307 | |
298 | 308 | |
299 | 309 | |
| 310 | + |
300 | 311 | |
301 | 312 | |
302 | 313 | |
|
Collapse file
+3-7Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
29 | | - |
30 | 28 | |
31 | 29 | |
32 | 30 | |
| ||
56 | 54 | |
57 | 55 | |
58 | 56 | |
| 57 | + |
59 | 58 | |
60 | 59 | |
61 | 60 | |
| ||
992 | 991 | |
993 | 992 | |
994 | 993 | |
995 | | - |
996 | | - |
997 | | - |
998 | | - |
999 | | - |
| 994 | + |
1000 | 995 | |
1001 | 996 | |
1002 | 997 | |
| ||
1085 | 1080 | |
1086 | 1081 | |
1087 | 1082 | |
| 1083 | + |
1088 | 1084 | |
1089 | 1085 | |
1090 | 1086 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
39 | 39 | |
40 | 40 | |
41 | 41 | |
| 42 | + |
| 43 | + |
42 | 44 | |
43 | 45 | |
44 | 46 | |
|
Collapse file
test/parallel/test-child-process-execfile.js
Copy file name to clipboardExpand all lines: test/parallel/test-child-process-execfile.js+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
| 2 | + |
2 | 3 | |
3 | 4 | |
4 | 5 | |
5 | | - |
| 6 | + |
6 | 7 | |
7 | 8 | |
8 | 9 | |
| ||
27 | 28 | |
28 | 29 | |
29 | 30 | |
30 | | - |
| 31 | + |
31 | 32 | |
32 | 33 | |
33 | 34 | |
|
Collapse file
test/parallel/test-net-server-listen-handle.js
Copy file name to clipboardExpand all lines: test/parallel/test-net-server-listen-handle.js+4-3Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
| 7 | + |
8 | 8 | |
9 | 9 | |
10 | 10 | |
| ||
47 | 47 | |
48 | 48 | |
49 | 49 | |
50 | | - |
51 | | - |
| 50 | + |
| 51 | + |
52 | 52 | |
| 53 | + |
53 | 54 | |
54 | 55 | |
55 | 56 | |
|
Collapse file
test/parallel/test-uv-errno.js
Copy file name to clipboardExpand all lines: test/parallel/test-uv-errno.js+9-5Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
6 | | - |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
7 | 9 | |
| 10 | + |
8 | 11 | |
9 | 12 | |
10 | 13 | |
11 | 14 | |
12 | 15 | |
13 | 16 | |
14 | 17 | |
15 | | - |
| 18 | + |
16 | 19 | |
17 | | - |
| 20 | + |
18 | 21 | |
| 22 | + |
19 | 23 | |
20 | 24 | |
21 | 25 | |
22 | 26 | |
23 | 27 | |
24 | 28 | |
25 | | - |
| 29 | + |
26 | 30 | |
27 | 31 | |
28 | 32 | |
|
Collapse file
test/sequential/test-async-wrap-getasyncid.js
Copy file name to clipboardExpand all lines: test/sequential/test-async-wrap-getasyncid.js+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
| 10 | + |
10 | 11 | |
11 | 12 | |
12 | 13 | |
| ||
214 | 215 | |
215 | 216 | |
216 | 217 | |
217 | | - |
| 218 | + |
218 | 219 | |
219 | 220 | |
220 | 221 | |
|
0 commit comments