mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
ea7a6f9dbd
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>
10 lines
254 B
JavaScript
10 lines
254 B
JavaScript
'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));
|