Skip to content

Commit 377ffa6

Browse files
committed
[js] Implement the 'pass' anchor.
1 parent 5c15ba1 commit 377ffa6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vm/js/QAST/Compiler.nqp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,8 @@ class RegexCompiler {
14771477
~ "if ($!pos == 0) \{{self.goto($done_label)}\}\n"
14781478
~ self.cclass_check('CCLASS_NEWLINE', :negated(1), :pos("$!pos-1"))
14791479
~ self.case($done_label);
1480+
} elsif $node.subtype eq 'pass' {
1481+
'';
14801482
} else {
14811483
$!compiler.NYI("anchor type: {$node.subtype}");
14821484
}

0 commit comments

Comments
 (0)