Fix qqmlecmascript::signalWithJSValueInVariant
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 7 Jun 2013 18:31:57 +0000 (20:31 +0200)
committerLars Knoll <lars.knoll@digia.com>
Sat, 8 Jun 2013 20:34:29 +0000 (22:34 +0200)
Don't use arguments.callee as we're now in strict mode :)

Change-Id: I9992fd6d39a170ce6f6d751aa49393e50ca0e636
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp

index e586fbc..ba47957 100644 (file)
@@ -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;