Don't use arguments.callee as we're now in strict mode :)
Change-Id: I9992fd6d39a170ce6f6d751aa49393e50ca0e636
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
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;