From 2f831d4e0b10fd0659a8dd2d5a0997cff42a382f Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 4 Jan 2013 10:25:01 +0100 Subject: Fix break without identifier in labelled loop Make sure to do leaveLoop() after enterLoop() when processing labelled statements. Fixes hang in ch12/12.8/S12.8_A3 Change-Id: Iee96ea515524e9ea879f7528dc43e552b1343020 Reviewed-by: Lars Knoll --- qv4codegen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qv4codegen.cpp b/qv4codegen.cpp index 190c0dcf63..5c95cd0158 100644 --- a/qv4codegen.cpp +++ b/qv4codegen.cpp @@ -2112,6 +2112,7 @@ bool Codegen::visit(LabelledStatement *ast) statement(ast->statement); _block->JUMP(breakBlock); _block = breakBlock; + leaveLoop(); } return false; -- cgit v1.2.3