Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for #122355
  • Loading branch information
lizmat committed Jul 21, 2014
1 parent 0f73b73 commit 043cc03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Exception.pm
Expand Up @@ -184,7 +184,7 @@ do {
nqp::printfh($err, $e.Str);
nqp::printfh($err, "\n");
}
$_() for nqp::hllize(nqp::getcurhllsym('@END_PHASERS'));
THE_END();
}
if $! {
#?if parrot
Expand Down
7 changes: 6 additions & 1 deletion src/core/control.pm
Expand Up @@ -173,11 +173,16 @@ multi sub EVAL(Cool $code, :$lang = 'perl6', PseudoStash :$context) {
}

sub exit($status = 0) {
$_() for nqp::hllize(nqp::getcurhllsym('@END_PHASERS'));
THE_END();
nqp::exit(nqp::unbox_i($status.Int));
$status;
}

sub THE_END {
my @END := nqp::p6list(nqp::getcurhllsym("@END_PHASERS"), Array, Mu);
while @END.shift -> $end { $end() };
}

my class Proc::Status { ... }

sub run(*@args ($, *@)) {
Expand Down

0 comments on commit 043cc03

Please sign in to comment.