Lines Matching refs:unhandledRejection

81   process.removeAllListeners('unhandledRejection');
87 process.on('unhandledRejection', function(reason, promise) {
99 process.on('unhandledRejection', function(reason, promise) {
100 done(new Error('unhandledRejection not supposed to be triggered'));
111 ' unhandledRejection', function(done) {
120 ' unhandledRejection', function(done) {
131 ' unhandledRejection', function(done) {
157 ' soon enough to stop unhandledRejection', function(done) {
173 ' re-thrown error should hit unhandledRejection', function(done) {
186 asyncTest('Test params of unhandledRejection for a synchronously-rejected ' +
197 're-thrown error should hit unhandledRejection: original promise' +
216 ' error should hit unhandledRejection: promise catch attached a' +
239 'unhandledRejection should not be triggered if a promise catch is' +
249 'unhandledRejection should not be triggered if a promise catch is' +
261 ' prevent unhandledRejection', function(done) {
271 ' prevent unhandledRejection', function(done) {
284 'prevents unhandledRejection', function(done) {
300 ' unhandledRejection', function(done) {
315 ' fulfillment handler prevents unhandledRejection', function(done) {
327 ' prevents unhandledRejection', function(done) {
339 ' does trigger unhandledRejection', function(done) {
355 ' does trigger unhandledRejection', function(done) {
368 ' promise in a fulfillment handler does trigger unhandledRejection',
383 'rejected promise prevents unhandledRejection', function(done) {
391 'nextTick-async rejected promise prevents unhandledRejection',
408 ' a rejected promise triggers unhandledRejection for the returned' +
419 ' unhandledRejection + rejectionHandled pair', function(done) {
423 process.on('unhandledRejection', function(reason, promise) {
446 ' prevent unhandledRejection', function(done) {
465 'prevent unhandledRejection: inside setImmediate', function(done) {
485 'prevent unhandledRejection: inside setTimeout', function(done) {
505 ' to prevent unhandledRejection', function(done) {
525 ' to prevent unhandledRejection: inside setImmediate',
547 ' to prevent unhandledRejection: inside setTimeout', function(done) {
566 ' handler; unhandledRejection will be triggered in that case.' +
582 ' handler; unhandledRejection will be triggered in that case' +
603 ' handler; unhandledRejection will be triggered in that case' +
627 process.on('unhandledRejection', function(reason, promise) {
665 asyncTest('Rejected promise inside unhandledRejection allows nextTick loop' +
670 process.on('unhandledRejection', () => {
679 'Promise rejection triggers unhandledRejection immediately',
683 process.on('unhandledRejection', common.mustCall((err) => {