| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f7a2f75 commit 2c5e6af
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,14 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + | ||
| 3 | + const common = require('../common'); | ||
| 4 | + const assert = require('assert'); | ||
| 5 | + | ||
| 6 | + process.on('exit', () => { | ||
| 7 | + assert.strictEqual(process._exiting, true, 'process._exiting was not set!'); | ||
| 8 | + | ||
| 9 | + process.nextTick(() => { | ||
| 10 | + common.fail('process is exiting, should not be called.'); | ||
| 11 | + }); | ||
| 12 | + }); | ||
| 13 | + | ||
| 14 | + process.exit(); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments