Labelled statements can also appear outside of loops
authorLars Knoll <lars.knoll@digia.com>
Wed, 23 Jan 2013 20:47:44 +0000 (21:47 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Wed, 23 Jan 2013 21:30:09 +0000 (22:30 +0100)
Change-Id: I121b9341dd102964f52dec2a0278c2a3d74b9a8a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qv4codegen.cpp
tests/TestExpectations

index da2a17c..46a228e 100644 (file)
@@ -2172,7 +2172,7 @@ bool Codegen::visit(LabelledStatement *ast)
             AST::cast<AST::LocalForStatement *>(ast->statement) ||
             AST::cast<AST::LocalForEachStatement *>(ast->statement)) {
         statement(ast->statement); // labelledStatement will be associated with the ast->statement's loop.
-    } else if (_loop) {
+    } else {
         IR::BasicBlock *breakBlock = _function->newBasicBlock();
         enterLoop(ast->statement, breakBlock, /*continueBlock*/ 0);
         statement(ast->statement);
index 8891965..0db14a4 100644 (file)
@@ -197,9 +197,6 @@ S15.1.2.1_A4.2 failing
 S15.1.2.1_A4.3 failing
 S15.1.2.1_A4.4 failing
 S15.1.2.1_A4.7 failing
-S12.8_A4_T1 failing
-S12.8_A4_T2 failing
-S12.8_A4_T3 failing
 S15.12.2_A1 failing
 15.2.3.6-4-360-3 failing
 15.2.3.6-4-360-7 failing