Commit d8d2d33
node-api: verify cleanup hooks order
Cleanup hooks are called before the environment shutdown finalizer
invocations.
PR-URL: #46692
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>1 parent baada5d commit d8d2d33Copy full SHA for d8d2d33
Expand file treeCollapse file tree
3 files changed
+63
-2
lines changedOpen diff view settings
Collapse file
test/node-api/test_async_cleanup_hook/binding.c
Copy file name to clipboardExpand all lines: test/node-api/test_async_cleanup_hook/binding.c+31Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
| 7 | + |
7 | 8 | |
8 | 9 | |
9 | 10 | |
| ||
21 | 22 | |
22 | 23 | |
23 | 24 | |
| 25 | + |
24 | 26 | |
25 | 27 | |
26 | 28 | |
27 | 29 | |
28 | 30 | |
29 | 31 | |
30 | 32 | |
| 33 | + |
31 | 34 | |
32 | 35 | |
33 | 36 | |
34 | 37 | |
| 38 | + |
35 | 39 | |
36 | 40 | |
37 | 41 | |
| ||
44 | 48 | |
45 | 49 | |
46 | 50 | |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
47 | 70 | |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
48 | 76 | |
49 | 77 | |
50 | 78 | |
| ||
64 | 92 | |
65 | 93 | |
66 | 94 | |
| 95 | + |
| 96 | + |
| 97 | + |
67 | 98 | |
68 | 99 | |
69 | 100 | |
|
Collapse file
test/node-api/test_cleanup_hook/binding.c
Copy file name to clipboardExpand all lines: test/node-api/test_cleanup_hook/binding.c+30-1Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
1 | 4 | |
2 | 5 | |
3 | | - |
4 | 6 | |
| 7 | + |
5 | 8 | |
| 9 | + |
6 | 10 | |
7 | 11 | |
8 | 12 | |
9 | 13 | |
10 | 14 | |
11 | 15 | |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
12 | 35 | |
| 36 | + |
| 37 | + |
| 38 | + |
13 | 39 | |
14 | 40 | |
15 | 41 | |
16 | 42 | |
| 43 | + |
| 44 | + |
| 45 | + |
17 | 46 | |
18 | 47 | |
19 | 48 | |
|
Collapse file
test/node-api/test_cleanup_hook/test.js
Copy file name to clipboardExpand all lines: test/node-api/test_cleanup_hook/test.js+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
10 | 10 | |
| 11 | + |
11 | 12 | |
12 | 13 | |
0 commit comments