Skip to content

Commit

Permalink
[js] Fix if ... -> @*param {...}
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Mar 25, 2018
1 parent 0904ae9 commit 11539c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/js/Operations.nqp
Expand Up @@ -1068,8 +1068,8 @@ class QAST::OperationsJS {
});

my sub needs_cond_passed($n) {
nqp::istype($n, QAST::Block) && $n.arity > 0 &&
($n.blocktype eq 'immediate' || $n.blocktype eq 'immediate_static')
nqp::istype($n, QAST::Block) && ($n.arity > 0 || $n.ann: 'count') # slurpies would have .arity 0
&& ($n.blocktype eq 'immediate' || $n.blocktype eq 'immediate_static')
}

for <if unless with without> -> $op_name {
Expand Down

0 comments on commit 11539c6

Please sign in to comment.