summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptengine.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-07-28 11:04:11 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-07-28 11:28:27 (GMT)
commitf3927de84b509a1be3f06182327e3c4cdea23b70 (patch)
tree6317d9783430ae754bf0c5d42b3bf1148ceb1860 /src/script/api/qscriptengine.cpp
parentacac0684d0eb13792cbb8b9bde6f077642dcc640 (diff)
downloadQt-f3927de84b509a1be3f06182327e3c4cdea23b70.zip
Qt-f3927de84b509a1be3f06182327e3c4cdea23b70.tar.gz
Qt-f3927de84b509a1be3f06182327e3c4cdea23b70.tar.bz2
Fix tst_QScriptEngine::uncaughtException
The test used to test that passing 0 as line number works. There is no reason to impose the lineNumber to be >= 1, this is an arbitrary limitation. It even works when passing negative value, but as -1 is a magic number, an error on line '-1' will not have lineNumber Reviewed-by: Kent Hansen
Diffstat (limited to 'src/script/api/qscriptengine.cpp')
-rw-r--r--src/script/api/qscriptengine.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp
index 61bf271..01cf50b 100644
--- a/src/script/api/qscriptengine.cpp
+++ b/src/script/api/qscriptengine.cpp
@@ -2184,7 +2184,6 @@ QScriptSyntaxCheckResult QScriptEnginePrivate::checkSyntax(const QString &progra
QScriptValue QScriptEngine::evaluate(const QString &program, const QString &fileName, int lineNumber)
{
Q_D(QScriptEngine);
- lineNumber = qMax(lineNumber, 1);
JSC::JSLock lock(false); // ### hmmm