From eec01627c7fcf9b2b25121a9c72b46d9876abc66 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 18 Jun 2013 12:59:51 +0200 Subject: [PATCH] Fix inifite loop when running ecmascript tests Revert the initialization part of 42825af048ab2724e0d434178dcef1b23b4850ff in the IR, apparently it is needed. Change-Id: Ia415133ee2fb6cd060fa5a0e5da7b711ac98ddd1 Reviewed-by: Erik Verbruggen --- src/qml/qml/v4/qv4codegen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qml/qml/v4/qv4codegen.cpp b/src/qml/qml/v4/qv4codegen.cpp index ccd1ef1..310272c 100644 --- a/src/qml/qml/v4/qv4codegen.cpp +++ b/src/qml/qml/v4/qv4codegen.cpp @@ -1844,6 +1844,7 @@ V4IR::Function *Codegen::defineFunction(const QString &name, AST::Node *ast, function->LOCAL(local); unsigned t = entryBlock->newTemp(); (*it).index = t; + entryBlock->MOVE(entryBlock->TEMP(t), entryBlock->CONST(V4IR::UndefinedType, 0)); } } else { if (!_env->isStrict) { -- 2.7.4