Commit 148ecfa
Catch segfaults, fix a segfault, track build type
PR-URL: #161
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
* Establish the build type by looking at whether test/build has a
subdirectory named "Release" or whether it has one named "Debug". Thus,
`npm test --debug` will also work.
* Correctly process the child exit status, examining both the exit code
*and* the signal it threw, if any.
* In `objectwrap` we must delete the reference to the constructor
sooner than the C++ library destructor for global data, because by the
time the library constructor gets called the V8 machinery has been
decommissioned and causes a segfault when attempting the belated
deletion of a reference.
PR-URL: #161
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>1 parent 988c9a9 commit 148ecfa
2 files changed
Lines changed: 13 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
| |||
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
33 | | - | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| 43 | + | |
38 | 44 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | 17 | | |
20 | | - | |
21 | | - | |
22 | 18 | | |
23 | 19 | | |
24 | | - | |
25 | | - | |
26 | 20 | | |
27 | 21 | | |
28 | 22 | | |
29 | | - | |
| 23 | + | |
| 24 | + | |
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
| |||
38 | 33 | | |
39 | 34 | | |
40 | 35 | | |
41 | | - | |
| 36 | + | |
42 | 37 | | |
43 | 38 | | |
44 | 39 | | |
| |||
62 | 57 | | |
63 | 58 | | |
64 | 59 | | |
| 60 | + | |
65 | 61 | | |
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
69 | 65 | | |
70 | | - | |
71 | 66 | | |
72 | 67 | | |
0 commit comments