summaryrefslogtreecommitdiffstats
path: root/src/script/bridge
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-08-17 13:43:07 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-08-17 13:43:07 (GMT)
commitba25514d1c1010d84ffdbf75331ff71596e56c99 (patch)
tree0826e54b51a0727ec823be7768d3f34fb94ed6fd /src/script/bridge
parent92daafcd4677af16d47e51ac8e0f00c554007fa0 (diff)
downloadQt-ba25514d1c1010d84ffdbf75331ff71596e56c99.zip
Qt-ba25514d1c1010d84ffdbf75331ff71596e56c99.tar.gz
Qt-ba25514d1c1010d84ffdbf75331ff71596e56c99.tar.bz2
remove unnecessary ifdefs
Diffstat (limited to 'src/script/bridge')
-rw-r--r--src/script/bridge/qscriptfunction.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/script/bridge/qscriptfunction.cpp b/src/script/bridge/qscriptfunction.cpp
index 396a787..27ec203 100644
--- a/src/script/bridge/qscriptfunction.cpp
+++ b/src/script/bridge/qscriptfunction.cpp
@@ -81,9 +81,7 @@ FunctionWrapper::~FunctionWrapper()
JSC::ConstructType FunctionWrapper::getConstructData(JSC::ConstructData& consData)
{
consData.native.function = proxyConstruct;
-#ifdef QT_BUILD_SCRIPT_LIB
consData.native.function.doNotCallDebuggerFunctionExit();
-#endif
return JSC::ConstructTypeHost;
}
@@ -118,10 +116,10 @@ JSC::JSObject* FunctionWrapper::proxyConstruct(JSC::ExecState *exec, JSC::JSObje
QScriptContext *ctx = eng_p->contextForFrame(eng_p->currentFrame);
QScriptValue result = self->data->function(ctx, QScriptEnginePrivate::get(eng_p));
-#ifdef QT_BUILD_SCRIPT_LIB
+
if (JSC::Debugger* debugger = eng_p->originalGlobalObject()->debugger())
debugger->functionExit(QScriptValuePrivate::get(result)->jscValue, -1);
-#endif
+
if (!result.isObject())
result = ctx->thisObject();