Lines Matching refs:process

20       process.stderr.write(`'${currentTest.description}' failed\n\n`);
22 process.stderr.write(stack);
23 process.exit(2);
55 process.on('uncaughtException', fail);
69 const listeners = process.listeners('uncaughtException');
70 process.removeAllListeners('uncaughtException');
71 process.on('uncaughtException', fn);
73 process.removeListener('uncaughtException', fn);
75 process.on('uncaughtException', listener);
81 process.removeAllListeners('unhandledRejection');
82 process.removeAllListeners('rejectionHandled');
87 process.on('unhandledRejection', function(reason, promise) {
99 process.on('unhandledRejection', function(reason, promise) {
102 process.on('rejectionHandled', function() {
217 ' process.nextTick after rejection', function(done) {
227 process.nextTick(function() {
260 asyncTest('Attaching a promise catch in a process.nextTick is soon enough to' +
265 process.nextTick(function() {
270 asyncTest('Attaching a promise catch in a process.nextTick is soon enough to' +
277 process.nextTick(function() {
396 process.nextTick(function() {
401 process.nextTick(function() {
423 process.on('unhandledRejection', function(reason, promise) {
427 process.on('rejectionHandled', function(promise) {
444 asyncTest('Waiting for some combination of process.nextTick + promise' +
452 process.nextTick(function() {
454 process.nextTick(function() {
463 asyncTest('Waiting for some combination of process.nextTick + promise' +
471 process.nextTick(function() {
473 process.nextTick(function() {
483 asyncTest('Waiting for some combination of process.nextTick + promise ' +
491 process.nextTick(function() {
493 process.nextTick(function() {
504 'process.nextTick to attach a catch handler is still soon enough' +
512 process.nextTick(function() {
514 process.nextTick(function() {
524 ' process.nextTick to attach a catch handler is still soon enough' +
533 process.nextTick(function() {
535 process.nextTick(function() {
546 ' process.nextTick to attach a catch handler is still soon enough' +
554 process.nextTick(function() {
556 process.nextTick(function() {
627 process.on('unhandledRejection', function(reason, promise) {
629 process.nextTick(function() {
652 process.on('rejectionHandled', function() {
670 process.on('unhandledRejection', () => {
674 process.nextTick(() => promise.catch(() => done()));
683 process.on('unhandledRejection', common.mustCall((err) => {