Files
node/test/parallel/test-beforeexit-event-exit.js
Rich Trott 1091b86290 test: remove common.fail()
common.fail() was added to paste over issues with assert.fail() function
signature. assert.fail() has been updated to accept a single argument so
common.fail() is no longer necessary.

Backport-PR-URL: https://github.com/nodejs/node/pull/15479
PR-URL: https://github.com/nodejs/node/pull/12293
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2017-10-25 04:09:42 -04:00

10 lines
184 B
JavaScript

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