0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/parallel/test-beforeexit-event-exit.js
cjihrig 7f69972cf0 test: refactor test-beforeexit-event-exit.js
PR-URL: https://github.com/nodejs/node/pull/10577
Reviewed-By: Italo A. Casas <me@italoacasas.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2017-01-05 12:03:55 -05:00

9 lines
165 B
JavaScript

'use strict';
const common = require('../common');
process.on('beforeExit', function() {
common.fail('exit should not allow this to occur');
});
process.exit();