Skip to content

Commit

Permalink
[js] Stop from generating unneeded boolifications (caused a bug when …
Browse files Browse the repository at this point in the history
…rakudo.js was compiling the setting).
  • Loading branch information
pmurias committed Oct 12, 2016
1 parent cf14d7a commit 558f4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/js/RegexCompiler.nqp
Expand Up @@ -424,7 +424,7 @@ class RegexCompiler {
}

method qastnode($node) {
my $code := $!compiler.as_js($node[0], :want($T_BOOL));
my $code := $!compiler.as_js($node[0], :want($node.subtype eq 'zerowidth' ?? $T_BOOL !! $T_VOID));

Chunk.void(
self.set_cursor_pos,
Expand Down

0 comments on commit 558f4df

Please sign in to comment.