mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix 'break' parsing
This commit is contained in:
parent
f380b30e75
commit
cde880b1cf
@ -2818,7 +2818,7 @@ parse_statement (void)
|
||||
temp[0] = NESTING_ITERATIONAL;
|
||||
temp[1] = NESTING_SWITCH;
|
||||
must_be_inside_but_not_in (temp, 2, NESTING_FUNCTION);
|
||||
add_to_rewritable_opcodes (REWRITABLE_BREAK, opcode_counter);
|
||||
add_to_rewritable_opcodes (REWRITABLE_BREAK, OPCODE_COUNTER ());
|
||||
mem_heap_free_block (temp);
|
||||
DUMP_OPCODE_2 (jmp_down, INVALID_VALUE, INVALID_VALUE);
|
||||
goto cleanup;
|
||||
|
||||
@ -21,7 +21,6 @@ for (var j = 0; j < 100; j++) {
|
||||
}
|
||||
assert(j == 100);
|
||||
|
||||
/*
|
||||
for (i = 0; ; ) {
|
||||
if (i == 100) {
|
||||
break;
|
||||
@ -30,7 +29,6 @@ for (i = 0; ; ) {
|
||||
i++;
|
||||
}
|
||||
assert(i == 100);
|
||||
*/
|
||||
|
||||
for (i = 0; i < 10; i++) {
|
||||
for (j = 0; j < 10; j++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user