Files
qt-creator/tests/auto/qml/codemodel/check/avoid-eval.qml
Christian Kamm 1b0dc76564 QmlJS checks: Add warning about 'eval'.
Migrated from QtChecker.

Change-Id: I4b3e8993c7b9f697497d2199b24bf49379dbc1b4
Reviewed-on: http://codereview.qt-project.org/5860
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2011-10-10 14:40:10 +02:00

10 lines
176 B
QML

import QtQuick 1.0
Item {
function foo() {
eval("a + b") // 23 9 12
var a = { eval: function (string) { return string; } }
a.eval("a + b")
}
}