Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
When compiling the pass regex op insert commas correctly
  • Loading branch information
pmurias committed Aug 16, 2015
1 parent f97b5e9 commit 2635c3b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vm/js/QAST/Compiler.nqp
Expand Up @@ -1297,8 +1297,7 @@ class RegexCompiler {
Chunk.new($T_VOID, "", [
"{$!cursor}['!cursor_pass']({$*BLOCK.ctx},",
"\{backtrack: {$node.backtrack ne 'r'}\}, {$!pos}",
(nqp::defined($name) ?? $name !! ''),
(nqp::defined($name) ?? ',' !! ''),
(nqp::defined($name) ?? ',' ~ $name !! ''),
");\n",
"break {$!js_loop_label};\n"
]);
Expand Down

0 comments on commit 2635c3b

Please sign in to comment.