diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/custom/04_bugs/10_break_stack_mismatch | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/custom/04_bugs/10_break_stack_mismatch b/tests/custom/04_bugs/10_break_stack_mismatch index ae16dac..c9c82c5 100644 --- a/tests/custom/04_bugs/10_break_stack_mismatch +++ b/tests/custom/04_bugs/10_break_stack_mismatch @@ -13,12 +13,14 @@ values or segmentation faults at runtime. for (let y in [2]) break; - print(x, "\n"); + let z = 3; + + print([ x, z ], "\n"); %} -- End -- -- Expect stdout -- -1 +[ 1, 3 ] -- End -- @@ -29,10 +31,12 @@ values or segmentation faults at runtime. for (let y = 0; y < 1; y++) break; - print(x, "\n"); + let z = 3; + + print([ x, z ], "\n"); %} -- End -- -- Expect stdout -- -1 +[ 1, 3 ] -- End -- |