QmlJS checks: Correct the check for dangerous == and add tests.

Change-Id: Ie0f4062069bf241020868af34ce6d36146b4b0c7
Reviewed-on: http://codereview.qt-project.org/4646
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
Christian Kamm
2011-09-12 10:44:11 +02:00
parent 97ad582c28
commit 367e27cde7
4 changed files with 78 additions and 33 deletions

View File

@@ -267,6 +267,8 @@ bool Evaluate::visit(AST::ArrayLiteral *)
bool Evaluate::visit(AST::ObjectLiteral *)
{
// ### properties
_result = _valueOwner->newObject();
return false;
}