mirror of https://github.com/lukechilds/node.git
Browse Source
* use common.mustCall() to confirm number of uncaught exceptions * var -> const * specify duration of 1ms for setTimeout() and setInterval() PR-URL: https://github.com/nodejs/node/pull/10188 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>v7.x
Rich Trott
8 years ago
committed by
Jeremiah Senkpiel
1 changed files with 5 additions and 5 deletions
@ -1,16 +1,16 @@ |
|||
'use strict'; |
|||
require('../common'); |
|||
const common = require('../common'); |
|||
|
|||
process.on('uncaughtException', function() { }); |
|||
process.on('uncaughtException', common.mustCall(function() {}, 2)); |
|||
|
|||
setTimeout(function() { |
|||
process.nextTick(function() { |
|||
var c = setInterval(function() { |
|||
const c = setInterval(function() { |
|||
clearInterval(c); |
|||
throw new Error('setInterval'); |
|||
}); |
|||
}, 1); |
|||
}); |
|||
setTimeout(function() { |
|||
throw new Error('setTimeout'); |
|||
}); |
|||
}, 1); |
|||
}); |
|||
|
Loading…
Reference in new issue