diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-06-07 20:31:57 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2013-06-08 22:34:29 +0200 |
commit | 9c9d00d2cf748e74cc6db009973f3af0e0e858da (patch) | |
tree | 2ae46349cd02a2abec9afa2bbb2eac72651297c7 /tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | |
parent | fe1528f90cee97b3b1e99fb7101467b32a6f95e4 (diff) |
Fix qqmlecmascript::signalWithJSValueInVariant
Don't use arguments.callee as we're now in strict mode :)
Change-Id: I9992fd6d39a170ce6f6d751aa49393e50ca0e636
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index e586fbc560..ba47957802 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -3472,13 +3472,13 @@ void tst_qqmlecmascript::signalWithJSValueInVariant_data() QTest::newRow("'ciao'") << "'ciao'" << compareStrict; QString comparePropertiesStrict( - "(function(a, b) {" + "(function compareMe(a, b) {" " if (typeof b != 'object')" " return a === b;" " var props = Object.getOwnPropertyNames(b);" " for (var i = 0; i < props.length; ++i) {" " var p = props[i];" - " return arguments.callee(a[p], b[p]);" + " return compareMe(a[p], b[p]);" " }" "})"); QTest::newRow("{ foo: 'bar' }") << "({ foo: 'bar' })" << comparePropertiesStrict; |