Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36f7f88 commit cac77ddCopy full SHA for cac77dd
test/parallel/test-signal-handler-remove-on-exit.js
@@ -0,0 +1,9 @@
1
+'use strict';
2
+require('../common');
3
+
4
+// Regression test for https://github.com/nodejs/node/issues/30581
5
+// This script should not crash.
6
7
+function dummy() {}
8
+process.on('SIGINT', dummy);
9
+process.on('exit', () => process.removeListener('SIGINT', dummy));
0 commit comments