Fix: 'return' keyword doesn't work inside for loops

fixes #8834
This commit is contained in:
Gunnar Beutner 2015-03-22 00:04:57 +01:00
parent ed29d06ab6
commit 808a26ae72
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ public:
return Empty;
}
static inline Value For(ScriptFrame& frame, const String& fkvar, const String& fvvar, const Value& value, Expression *expression, const DebugInfo& debugInfo = DebugInfo())
static inline ExpressionResult For(ScriptFrame& frame, const String& fkvar, const String& fvvar, const Value& value, Expression *expression, const DebugInfo& debugInfo = DebugInfo())
{
if (value.IsObjectType<Array>()) {
if (!fvvar.IsEmpty())