Skip to content

Commit

Permalink
Compile a block's exception handlers in predictable order
Browse files Browse the repository at this point in the history
  • Loading branch information
niner committed May 1, 2019
1 parent 7926cdd commit 95af2f4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Perl6/Actions.nqp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1805,9 +1805,10 @@ class Perl6::Actions is HLL::Actions does STDActions {
$past.push(QAST::WVal.new(:value($ret))) if nqp::isconcrete($ret) || $ret.HOW.name($ret) eq 'Nil'; $past.push(QAST::WVal.new(:value($ret))) if nqp::isconcrete($ret) || $ret.HOW.name($ret) eq 'Nil';
if %*HANDLERS { if %*HANDLERS {
$past := QAST::Op.new( :op('handle'), $past ); $past := QAST::Op.new( :op('handle'), $past );
for %*HANDLERS { my %handlers := %*HANDLERS;
$past.push($_.key); for sorted_keys(%handlers) {
$past.push($_.value); $past.push($_);
$past.push(%handlers{$_});
} }
} }
$past $past
Expand Down

0 comments on commit 95af2f4

Please sign in to comment.