Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix a thinko, winning one more test.
  • Loading branch information
jnthn committed Feb 21, 2013
1 parent 2e88e42 commit f4ee919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/QAST/JASTCompiler.nqp
Expand Up @@ -1296,12 +1296,12 @@ QAST::OperationsJAST.add_core_op('handle', sub ($qastcomp, $op) {

# Compile, create a lexical to put the handler in, and add it.
my $name := QAST::Node.unique('!HANDLER_');
$*BLOCK.add_lexical(QAST::Var.new( :name($name) ));
my $lexidx := $*BLOCK.lexical_idx($name);
my $il := JAST::InstructionList.new();
my $hb_res := $qastcomp.as_jast($hblock, :want($RT_OBJ));
$il.append($hb_res.jast);
$*STACK.obtain($hb_res);
$*BLOCK.add_lexical(QAST::Var.new( :name($name) ));
$il.append(JAST::Instruction.new( :op('aload'), 'cf' ));
$il.append(JAST::PushIndex.new( :value($lexidx) ));
$il.append(JAST::Instruction.new( :op('invokestatic'), $TYPE_OPS,
Expand Down

0 comments on commit f4ee919

Please sign in to comment.