Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FGasper committed Mar 22, 2023
1 parent 5852071 commit 14623a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Changes
@@ -1,5 +1,13 @@
Revision history for Perl module Promise::ES6

0.27
- Tweak AWAIT_GET to conform to Awaitable 0.65 test suite, which added
a new requirement for error reporting. Errors will now “come from”
whatever calls AWAIT_GET rather than AWAIT_GET’s internals.
(cf. https://rt.cpan.org/Public/Bug/Display.html?id=147276)
- Report Awaitable test version, so we can more easily diagnose
issues like the Awaitable 0.65 change.

0.26 Sun 8 Jan 2023
- (No production changes.)
- Skip async/await tests on DEBUGGING perls (fixes CPAN Testers).
Expand Down
4 changes: 3 additions & 1 deletion lib/Promise/ES6/Backend/PP.pm
Expand Up @@ -7,6 +7,8 @@ package Promise::ES6;
use strict;
use warnings;

use Carp ();

use constant {

# These aren’t actually defined.
Expand Down Expand Up @@ -402,7 +404,7 @@ sub AWAIT_GET {

return ${ $_[0]->[_VALUE_SR_IDX] } if UNIVERSAL::isa( $_[0]->[_VALUE_SR_IDX], _RESOLUTION_CLASS );

die ${ $_[0]->[_VALUE_SR_IDX] };
Carp::croak ${ $_[0]->[_VALUE_SR_IDX] };
}

use constant _noop => ();
Expand Down

0 comments on commit 14623a1

Please sign in to comment.