summaryrefslogtreecommitdiffstats
path: root/src/script/bridge/qscriptqobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/bridge/qscriptqobject.cpp')
-rw-r--r--src/script/bridge/qscriptqobject.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/script/bridge/qscriptqobject.cpp b/src/script/bridge/qscriptqobject.cpp
index bb701ce..b7a0e44 100644
--- a/src/script/bridge/qscriptqobject.cpp
+++ b/src/script/bridge/qscriptqobject.cpp
@@ -266,9 +266,8 @@ JSC::CallType QtFunction::getCallData(JSC::CallData &callData)
void QtFunction::mark()
{
Q_ASSERT(!marked());
- if (data->object && !data->object.marked()) {
- JSC::asObject(data->object)->JSC::JSObject::mark();
- }
+ if (data->object && !data->object.marked())
+ data->object.mark();
JSC::InternalFunction::mark();
}