Commit 80365fb
committed
fix(cucumber): contain detached finalizer failures
An ignored finally promise can reject with either the original test failure or a finalizer error. Running the finalizer as both promise handlers preserves the original returned promise while containing finalizer failures.1 parent efc0d0f commit 80365fb
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
796 | | - | |
797 | | - | |
| 796 | + | |
798 | 797 | | |
799 | 798 | | |
800 | 799 | | |
| |||
967 | 966 | | |
968 | 967 | | |
969 | 968 | | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
970 | 972 | | |
971 | 973 | | |
972 | 974 | | |
| |||
0 commit comments