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 60c8c38066
commit a99773b62d
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ public:
return Empty; 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 (value.IsObjectType<Array>()) {
if (!fvvar.IsEmpty()) if (!fvvar.IsEmpty())