Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix bug when emitting js for cclass.
  • Loading branch information
pmurias committed Jul 26, 2014
1 parent 4c31fee commit 9228766
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vm/js/QAST/Compiler.nqp
Expand Up @@ -924,7 +924,8 @@ class QAST::CompilerJS does SerializeOnce {
$code := $code ~ "if (target.substr(pos,2) == \"\\r\\n\") \{pos++\}\n";
}
}
$code ~ "pos++;\n" unless $node.subtype eq 'zerowidth';
$code := $code ~ "pos++;\n" unless $node.subtype eq 'zerowidth';
$code;
} elsif $node.rxtype eq 'subrule' || $node.rxtype eq 'ws' {
my $captured := 0;
my $name := QAST::SVal.new(:value(nqp::defined($node.name) ?? $node.name !! ''));
Expand Down

0 comments on commit 9228766

Please sign in to comment.