Skip to content

Commit

Permalink
Account for the nqp::handle body getting thunked
Browse files Browse the repository at this point in the history
It's not just the handlers that do, but also the handled code.
  • Loading branch information
jnthn committed Jan 7, 2019
1 parent 19e4ace commit fcfd51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Optimizer.nqp
Expand Up @@ -2776,7 +2776,7 @@ class Perl6::Optimizer {
else {
note("Non-QAST node visited " ~ $visit.HOW.name($visit)) if $!debug;
}
if $handle && $i > 0 {
if $handle {
@!block_var_stack[nqp::elems(@!block_var_stack) - 1].entering_handle_handler();
}
if nqp::istype($visit, QAST::Op) {
Expand Down

0 comments on commit fcfd51b

Please sign in to comment.