Closed akarelas closed 3 years ago
unhandled_promises
3d91e75
my $p1 = Mojo::Promise->new; my $p2 = Mojo::Promise->new; $p1->then( sub {say "p1 resolved: @_"}, sub {say "p1 rejected: ", ($_[0] == $p2) ? '$p2' : $_[0]} ); $p1->reject($p2); Mojo::IOLoop->one_tick;
This script produces no output.
The following output should be produced, according to: https://tc39.es/ecma262/#sec-promise-reject-functions point 7, and https://tc39.es/ecma262/#sec-rejectpromise points 3 and 8 (etc)
p1 rejected: $p2
There was no output
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This bug is fixed in master.
unhandled_promises
branch (3d91e75
)Steps to reproduce the behavior
This script produces no output.
Expected behavior
The following output should be produced, according to: https://tc39.es/ecma262/#sec-promise-reject-functions point 7, and https://tc39.es/ecma262/#sec-rejectpromise points 3 and 8 (etc)
Actual behavior
There was no output