forked from qt-creator/qt-creator
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:
@@ -267,6 +267,8 @@ bool Evaluate::visit(AST::ArrayLiteral *)
|
||||
|
||||
bool Evaluate::visit(AST::ObjectLiteral *)
|
||||
{
|
||||
// ### properties
|
||||
_result = _valueOwner->newObject();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user