Skip to content

Commit fcc0fed

Browse files
committed
[js] Fix 3 argument while with redo
1 parent e4e2f81 commit fcc0fed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vm/js/Operations.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ class QAST::OperationsJS {
13241324
Chunk.void(
13251325
$repeat_variant ?? "{$loop.redo} = true;\n" !! '',
13261326
$setup_previous_cond,
1327-
"{$loop.js_label}: for (;;", $post, ") \{\n",
1327+
"{$loop.js_label}: for (;;", ($post && $has_redo ?? "{$loop.redo} || " !! '') , $post, ") \{\n",
13281328
$comp.handle_control($loop, $control_ctx, Chunk.void(
13291329
($has_redo
13301330
?? "if ({$loop.redo}) \{;\n"

0 commit comments

Comments
 (0)