fix(bin/xo-server): remove ES6 syntax
This commit is contained in:
parent
8f8c6366e3
commit
cc447304f5
@ -8,7 +8,7 @@
|
|||||||
require('../better-stacks')
|
require('../better-stacks')
|
||||||
|
|
||||||
// Make unhandled rejected promises visible.
|
// Make unhandled rejected promises visible.
|
||||||
process.on('unhandledRejection', (reason) => {
|
process.on('unhandledRejection', function (reason) {
|
||||||
console.warn('[Warn] Possibly unhandled rejection:', reason && reason.stack || reason)
|
console.warn('[Warn] Possibly unhandled rejection:', reason && reason.stack || reason)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user