diff options
author | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-08-12 12:17:46 (GMT) |
---|---|---|
committer | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-08-12 12:25:41 (GMT) |
commit | 2c3f19a646da948f2f40a79e4a5df8f234398bee (patch) | |
tree | f277ed1b533dd6128f006ec3776ef1b73d5cba6f /src/3rdparty | |
parent | 8eeeebafaa66843eb17fc0d0e60154b1de07e183 (diff) | |
download | Qt-2c3f19a646da948f2f40a79e4a5df8f234398bee.zip Qt-2c3f19a646da948f2f40a79e4a5df8f234398bee.tar.gz Qt-2c3f19a646da948f2f40a79e4a5df8f234398bee.tar.bz2 |
Move JSC::Debugger's events calls from JSC::evaluate() to
QSCriptEngine::evaluate()
Fix broken behavior after bad integration with
538153994cacc4613aef1eb8ef77e501be7f5a88 commit
Diffstat (limited to 'src/3rdparty')
-rw-r--r-- | src/3rdparty/webkit/JavaScriptCore/runtime/Completion.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/runtime/Completion.cpp b/src/3rdparty/webkit/JavaScriptCore/runtime/Completion.cpp index 92f82bf..04c9a2e 100644 --- a/src/3rdparty/webkit/JavaScriptCore/runtime/Completion.cpp +++ b/src/3rdparty/webkit/JavaScriptCore/runtime/Completion.cpp @@ -60,25 +60,12 @@ Completion evaluate(ExecState* exec, ScopeChain& scopeChain, const SourceCode& s JSLock lock(exec); intptr_t sourceId = source.provider()->asID(); -#ifdef QT_BUILD_SCRIPT_LIB - Debugger* debugger = exec->lexicalGlobalObject()->debugger(); - exec->globalData().scriptpool->startEvaluating(source); - if (debugger) - debugger->evaluateStart(sourceId); -#endif int errLine; UString errMsg; RefPtr<ProgramNode> programNode = exec->globalData().parser->parse<ProgramNode>(exec, exec->dynamicGlobalObject()->debugger(), source, &errLine, &errMsg); if (!programNode) { JSValue error = Error::create(exec, SyntaxError, errMsg, errLine, sourceId, source.provider()->url()); -#ifdef QT_BUILD_SCRIPT_LIB - if (debugger) { - debugger->exceptionThrow(DebuggerCallFrame(exec, error), sourceId, false); - debugger->evaluateStop(error, sourceId); - } - exec->globalData().scriptpool->stopEvaluating(source); -#endif return Completion(Throw, error); } @@ -88,21 +75,11 @@ Completion evaluate(ExecState* exec, ScopeChain& scopeChain, const SourceCode& s JSValue result = exec->interpreter()->execute(programNode.get(), exec, scopeChain.node(), thisObj, &exception); if (exception) { -#ifdef QT_BUILD_SCRIPT_LIB - if (debugger) - debugger->evaluateStop(exception, sourceId); - exec->globalData().scriptpool->stopEvaluating(source); -#endif if (exception.isObject() && asObject(exception)->isWatchdogException()) return Completion(Interrupted, exception); return Completion(Throw, exception); } -#ifdef QT_BUILD_SCRIPT_LIB - if (debugger) - debugger->evaluateStop(result, sourceId); - exec->globalData().scriptpool->stopEvaluating(source); -#endif return Completion(Normal, result); } |