Home
last modified time | relevance | path

Searched refs:unhandledRejection (Results 1 - 2 of 2) sorted by relevance

/third_party/node/lib/internal/process/
H A Dpromises.js49 // Emit 'unhandledRejection', but do not emit any warning.
53 // Emit 'unhandledRejection', then emit 'UnhandledPromiseRejectionWarning'.
59 // Otherwise, emit 'unhandledRejection'. If 'unhandledRejection' is not
64 // Emit 'unhandledRejection', if it's unhandled, emit
70 // Emit 'unhandledRejection', if it's unhandled, emit
115 unhandledRejection(promise, reason);
144 function unhandledRejection(promise, reason) { function
149 return process.emit('unhandledRejection', reason, promise);
/third_party/node/test/parallel/
H A Dtest-promises-unhandled-rejections.js81 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 fo
[all...]

Completed in 1 milliseconds