Logo
Explore Help
Sign In
1berry/nodejs
1
0
Fork 0
You've already forked nodejs
Code Issues Packages Projects Releases Wiki Activity
nodejs/test/parallel/test-signal-handler-remove-on-exit.js

10 lines
254 B
JavaScript
Raw Permalink Normal View History

test: add regression test for signal handler removal in exit Refs: https://github.com/nodejs/node/pull/30581 Refs: https://github.com/nodejs/node/pull/30582 PR-URL: https://github.com/nodejs/node/pull/30589 Refs: https://github.com/nodejs/node/issues/30581 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2019-11-22 15:19:33 +01:00
'use strict';
require('../common');
// Regression test for https://github.com/nodejs/node/issues/30581
// This script should not crash.
function dummy() {}
process.on('SIGINT', dummy);
process.on('exit', () => process.removeListener('SIGINT', dummy));
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 4527ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API