File tree Expand file tree Collapse file tree 10 files changed +30
-30
lines changed Expand file tree Collapse file tree 10 files changed +30
-30
lines changed Original file line number Diff line number Diff line change 1
1
const test = require ( '../../../..' ) ;
2
2
3
3
test ( 'passes' , t => {
4
- setTimeout ( ( ) => {
4
+ setImmediate ( ( ) => {
5
5
throw new Error ( 'Can’t catch me' ) ;
6
6
} ) ;
7
7
t . pass ( ) ;
Original file line number Diff line number Diff line change 515
515
516
516
[90muncaught-exception.js:5[39m
517
517
518
- [90m4:[39m setTimeout (() => {
518
+ [90m4:[39m setImmediate (() => {
519
519
[41m 5: throw new Error('Can’t catch me');[49m
520
520
[90m6:[39m });
521
521
522
522
Error: Can’t catch me
523
523
524
- [90m› Timeout.setTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)[39m
524
+ [90m› Immediate.setImmediate (test-tap/fixture/report/regular/uncaught-exception.js:5:9)[39m
525
525
526
526
527
527
Original file line number Diff line number Diff line change 497
497
498
498
[90muncaught-exception.js:5[39m
499
499
500
- [90m4:[39m setTimeout (() => {
500
+ [90m4:[39m setImmediate (() => {
501
501
[41m 5: throw new Error('Can’t catch me');[49m
502
502
[90m6:[39m });
503
503
504
504
Error: Can’t catch me
505
505
506
- [90m› Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)[39m
507
- [90m[2m› listOnTimeout (internal/timers.js)[22m[39m
508
- [90m[2m› processTimers (internal/timers.js)[22m[39m
506
+ [90m› Immediate.<anonymous> (test-tap/fixture/report/regular/uncaught-exception.js:5:9)[39m
507
+ [90m[2m› processImmediate (internal/timers.js)[22m[39m
509
508
510
509
511
510
Original file line number Diff line number Diff line change 497
497
498
498
[90muncaught-exception.js:5[39m
499
499
500
- [90m4:[39m setTimeout (() => {
500
+ [90m4:[39m setImmediate (() => {
501
501
[41m 5: throw new Error('Can’t catch me');[49m
502
502
[90m6:[39m });
503
503
504
504
Error: Can’t catch me
505
505
506
- [90m› Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)[39m
507
- [90m[2m› listOnTimeout (internal/timers.js)[22m[39m
508
- [90m[2m› processTimers (internal/timers.js)[22m[39m
506
+ [90m› Immediate.<anonymous> (test-tap/fixture/report/regular/uncaught-exception.js:5:9)[39m
507
+ [90m[2m› processImmediate (internal/timers.js)[22m[39m
509
508
510
509
511
510
Original file line number Diff line number Diff line change @@ -323,7 +323,9 @@ not ok 25 - Error: Can’t catch me
323
323
---
324
324
name: Error
325
325
message: Can’t catch me
326
- at: 'Timeout.setTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)'
326
+ at: >-
327
+ Immediate.setImmediate
328
+ (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
327
329
...
328
330
---tty-stream-chunk-separator
329
331
# uncaught-exception.js exited with a non-zero exit code: 1
Original file line number Diff line number Diff line change @@ -296,10 +296,11 @@ not ok 25 - Error: Can’t catch me
296
296
---
297
297
name: Error
298
298
message: Can’t catch me
299
- at: |-
300
- Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
301
- listOnTimeout (internal/timers.js)
302
- processTimers (internal/timers.js)
299
+ at: >-
300
+ Immediate.<anonymous>
301
+ (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
302
+
303
+ processImmediate (internal/timers.js)
303
304
...
304
305
---tty-stream-chunk-separator
305
306
# uncaught-exception.js exited with a non-zero exit code: 1
Original file line number Diff line number Diff line change @@ -296,10 +296,11 @@ not ok 25 - Error: Can’t catch me
296
296
---
297
297
name: Error
298
298
message: Can’t catch me
299
- at: |-
300
- Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
301
- listOnTimeout (internal/timers.js)
302
- processTimers (internal/timers.js)
299
+ at: >-
300
+ Immediate.<anonymous>
301
+ (test-tap/fixture/report/regular/uncaught-exception.js:5:9)
302
+
303
+ processImmediate (internal/timers.js)
303
304
...
304
305
---tty-stream-chunk-separator
305
306
# uncaught-exception.js exited with a non-zero exit code: 1
Original file line number Diff line number Diff line change 87
87
88
88
[90muncaught-exception.js:5[39m
89
89
90
- [90m4:[39m setTimeout (() => {
90
+ [90m4:[39m setImmediate (() => {
91
91
[41m 5: throw new Error('Can’t catch me');[49m
92
92
[90m6:[39m });
93
93
94
94
Error: Can’t catch me
95
95
96
- [90m› Timeout.setTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)[39m
96
+ [90m› Immediate.setImmediate (test-tap/fixture/report/regular/uncaught-exception.js:5:9)[39m
97
97
98
98
---tty-stream-chunk-separator
99
99
[31m✖ uncaught-exception.js exited with a non-zero exit code: 1[39m
Original file line number Diff line number Diff line change 87
87
88
88
[90muncaught-exception.js:5[39m
89
89
90
- [90m4:[39m setTimeout (() => {
90
+ [90m4:[39m setImmediate (() => {
91
91
[41m 5: throw new Error('Can’t catch me');[49m
92
92
[90m6:[39m });
93
93
94
94
Error: Can’t catch me
95
95
96
- [90m› Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)[39m
97
- [90m[2m› listOnTimeout (internal/timers.js)[22m[39m
98
- [90m[2m› processTimers (internal/timers.js)[22m[39m
96
+ [90m› Immediate.<anonymous> (test-tap/fixture/report/regular/uncaught-exception.js:5:9)[39m
97
+ [90m[2m› processImmediate (internal/timers.js)[22m[39m
99
98
100
99
---tty-stream-chunk-separator
101
100
[31m✖ uncaught-exception.js exited with a non-zero exit code: 1[39m
Original file line number Diff line number Diff line change 87
87
88
88
[90muncaught-exception.js:5[39m
89
89
90
- [90m4:[39m setTimeout (() => {
90
+ [90m4:[39m setImmediate (() => {
91
91
[41m 5: throw new Error('Can’t catch me');[49m
92
92
[90m6:[39m });
93
93
94
94
Error: Can’t catch me
95
95
96
- [90m› Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)[39m
97
- [90m[2m› listOnTimeout (internal/timers.js)[22m[39m
98
- [90m[2m› processTimers (internal/timers.js)[22m[39m
96
+ [90m› Immediate.<anonymous> (test-tap/fixture/report/regular/uncaught-exception.js:5:9)[39m
97
+ [90m[2m› processImmediate (internal/timers.js)[22m[39m
99
98
100
99
---tty-stream-chunk-separator
101
100
[31m✖ uncaught-exception.js exited with a non-zero exit code: 1[39m
You can’t perform that action at this time.
0 commit comments