Skip to content

Commit

Permalink
Remove extra push of child to outer block
Browse files Browse the repository at this point in the history
The action should only occur once and already occurs in the method to
create code objects. zoffix++ for verification.
  • Loading branch information
jstuder-gh committed Feb 7, 2018
1 parent 4219f8c commit ba09db6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Perl6/Actions.nqp
Expand Up @@ -8333,7 +8333,6 @@ class Perl6::Actions is HLL::Actions does STDActions {
}
my $rep_block := $*SUBST_RHS_BLOCK;
$rep_block.push(QAST::Stmts.new($right, :node($<sibble><right>)));
$*W.cur_lexpad()[0].push($rep_block);
my $closure := block_closure(reference_to_code_object(
$*W.create_code_obj_and_add_child($rep_block, 'Code'),
$rep_block));
Expand Down

0 comments on commit ba09db6

Please sign in to comment.