Skip to content

Commit

Permalink
[js] Implement nqp::p6captosig.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Jan 24, 2017
1 parent ab7cf8e commit c820894
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vm/js/Perl6/Ops.nqp
Expand Up @@ -67,6 +67,10 @@ $ops.add_simple_op('p6isbindable', $ops.INT, [$ops.OBJ, $ops.OBJ], :!inlinable,
"nqp.p6binder.is_bindable($*CTX, null, nqp.p6binder, $sig, $cap)"
});

$ops.add_simple_op('p6captosig', $ops.OBJ, [$ops.OBJ, $ops.OBJ], sub ($sig, $cap) {
"nqp.p6binder.bind_cap_to_sig($*CTX, null, nqp.p6binder, $sig, $cap)"
}, :side_effects);

$ops.add_op('p6bindattrinvres', $ops.bindattr($ops.OBJ, :inverted_result));

$ops.add_simple_op('p6invokeunder', $ops.OBJ, [$ops.OBJ, $ops.OBJ], :side_effects, sub ($fake, $code) {
Expand Down

0 comments on commit c820894

Please sign in to comment.