dotfiles/.vscode/extensions/saviorisdead.RustyCode-0.18.0/node_modules/signal-exit/test/fixtures/sigkill.js
Cyryl Płotnicki 2f946d6200 Add .vscode
2016-09-11 10:29:13 +02:00

19 lines
553 B
JavaScript

// SIGKILL can't be caught, and in fact, even trying to add the
// listener will throw an error.
// We handle that nicely.
//
// This is just here to get another few more lines of test
// coverage. That's also why it lies about being on a linux
// platform so that we pull in those other event types.
Object.defineProperty(process, 'platform', {
value: 'linux',
writable: false,
enumerable: true,
configurable: true
})
var signals = require('../../signals.js')
signals.push('SIGKILL')
var onSignalExit = require('../../')
onSignalExit.load()