Skip to content

Commit

Permalink
[js] Implement nqp::p6invokeflat
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Apr 24, 2017
1 parent ef072b6 commit d03ae34
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/vm/js/Perl6/Ops.nqp
Expand Up @@ -35,6 +35,13 @@ register_op_desugar('p6sink', -> $qast {
);
});

# Stub
register_op_desugar('p6invokeflat', -> $qast {
$qast[1].flat(1);
QAST::Op.new( :op('call'), $qast[0], $qast[1]);
QAST::Op.new(:op('null'));
});

# Signature binding related bits.

$ops.add_simple_op('p6setbinder', $ops.VOID, [$ops.OBJ], :side_effects, sub ($binder) {"nqp.p6binder = $binder"});
Expand Down

0 comments on commit d03ae34

Please sign in to comment.