Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Must clone then p6capturelex.
Otherwise it's a race condition. This is the only place I spotted this
bug; the other places seem to get it right.
  • Loading branch information
jnthn committed Jun 9, 2015
1 parent 636bd32 commit 70abc0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Perl6/Actions.nqp
Expand Up @@ -2101,11 +2101,11 @@ Compilation unit '$file' contained the following violations:
'Block', $*W.create_signature(nqp::hash('parameter_objects', [])));
my $fixup := $*W.create_lexical_capture_fixup();
$fixup.push(QAST::Op.new(
:op('callmethod'), :name('clone'),
QAST::Op.new(
:op('p6capturelex'),
QAST::WVal.new( :value($throwaway_block) )
)));
QAST::Op.new(
:op('callmethod'), :name('clone'),
QAST::WVal.new( :value($throwaway_block) )
)));
$block[1].push($fixup);

# As its last act, it should grab the current lexpad so that
Expand Down

0 comments on commit 70abc0b

Please sign in to comment.