Fix incorrect result for the !in operator

fixes #7806
This commit is contained in:
Gunnar Beutner 2014-11-23 09:52:17 +01:00
parent 16cf274efc
commit af759ff6ab
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ Value NotInExpression::DoEvaluate(VMFrame& frame, DebugHint *dhint) const
Value right = m_Operand2->Evaluate(frame);
if (right.IsEmpty())
return false;
return true;
else if (!right.IsObjectType<Array>())
BOOST_THROW_EXCEPTION(ConfigError("Invalid right side argument for 'in' operator: " + JsonEncode(right)));