We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f01168 commit bda34eaCopy full SHA for bda34ea
test/sequential/test-async-wrap-getasyncid.js
@@ -1,4 +1,5 @@
1
'use strict';
2
+// Flags: --expose-gc
3
4
const common = require('../common');
5
const assert = require('assert');
@@ -22,6 +23,11 @@ common.crashOnUnhandledRejection();
22
23
},
24
}).enable();
25
process.on('beforeExit', common.mustCall(() => {
26
+ // This garbage collection call verifies that the wraps being garbage
27
+ // collected doesn't resurrect the process again due to weirdly timed
28
+ // uv_close calls and other similar instruments in destructors.
29
+ global.gc();
30
+
31
process.removeAllListeners('uncaughtException');
32
hooks.disable();
33
delete providers.NONE; // Should never be used.
0 commit comments