patch = nxt_mem_cache_alloc(vm->mem_cache_pool, sizeof(njs_parser_patch_t));
if (nxt_fast_path(patch != NULL)) {
- patch->next = parser->block->continuation;
- parser->block->continuation = patch;
+ patch->next = block->continuation;
+ block->continuation = patch;
njs_generate_code(parser, njs_vmcode_jump_t, jump);
jump->code.operation = njs_vmcode_jump;
patch = nxt_mem_cache_alloc(vm->mem_cache_pool, sizeof(njs_parser_patch_t));
if (nxt_fast_path(patch != NULL)) {
- patch->next = parser->block->exit;
- parser->block->exit = patch;
+ patch->next = block->exit;
+ block->exit = patch;
njs_generate_code(parser, njs_vmcode_jump_t, jump);
jump->code.operation = njs_vmcode_jump;
"for (i in a) { if (a[i] > 4) continue; s += a[i] } s"),
nxt_string("10") },
+ { nxt_string("var a; for (a = 1; a; a--) switch (a) { case 0: continue }"),
+ nxt_string("undefined") },
+
/* break. */
{ nxt_string("break"),