summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-08-10 09:40:13 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-08-10 09:40:13 (GMT)
commite810abb1a0b4a34f50027bb0f8fa3c67f4ae1617 (patch)
treebb665459b409775d9fc2b4749a2c944e6f168d97 /tests
parent65a400084b888b12165a47b3474412c080b1422d (diff)
downloadQt-e810abb1a0b4a34f50027bb0f8fa3c67f4ae1617.zip
Qt-e810abb1a0b4a34f50027bb0f8fa3c67f4ae1617.tar.gz
Qt-e810abb1a0b4a34f50027bb0f8fa3c67f4ae1617.tar.bz2
make native function scopes test pass
Missing parentheses in function expression (JSC requires them).
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qscriptengine/tst_qscriptengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qscriptengine/tst_qscriptengine.cpp b/tests/auto/qscriptengine/tst_qscriptengine.cpp
index f7dc924..c9ec9d3 100644
--- a/tests/auto/qscriptengine/tst_qscriptengine.cpp
+++ b/tests/auto/qscriptengine/tst_qscriptengine.cpp
@@ -3904,7 +3904,7 @@ static QScriptValue counter_hybrid(QScriptContext *ctx, QScriptEngine *eng)
{
QScriptValue act = ctx->activationObject();
act.setProperty("count", ctx->argument(0).toInt32());
- return eng->evaluate("function() { return count++; }");
+ return eng->evaluate("(function() { return count++; })");
}
void tst_QScriptEngine::nativeFunctionScopes()