summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2010-04-01 12:26:58 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2010-04-01 12:26:58 (GMT)
commit3a1f89fc122c202d5b2f9352e81d467b0a48e61c (patch)
treed963a442579fcdd1396fab808b979ff42af26de6 /src
parentb477224b08bc1bad53050c98355281cc1c3f7ea3 (diff)
downloadQt-3a1f89fc122c202d5b2f9352e81d467b0a48e61c.zip
Qt-3a1f89fc122c202d5b2f9352e81d467b0a48e61c.tar.gz
Qt-3a1f89fc122c202d5b2f9352e81d467b0a48e61c.tar.bz2
QScript: more missing APIShim
Diffstat (limited to 'src')
-rw-r--r--src/script/api/qscriptvalue.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/api/qscriptvalue.cpp b/src/script/api/qscriptvalue.cpp
index 3aab268..7469f9a 100644
--- a/src/script/api/qscriptvalue.cpp
+++ b/src/script/api/qscriptvalue.cpp
@@ -1447,6 +1447,7 @@ QScriptValue QScriptValue::property(const QScriptString &name,
Q_D(const QScriptValue);
if (!d || !d->isObject() || !QScriptStringPrivate::isValid(name))
return QScriptValue();
+ QScript::APIShim shim(d->engine);
return d->engine->scriptValueFromJSCValue(d->property(name.d_ptr->identifier, mode));
}
@@ -1477,6 +1478,7 @@ void QScriptValue::setProperty(const QScriptString &name,
qPrintable(name.toString()));
return;
}
+ QScript::APIShim shim(d->engine);
JSC::JSValue jsValue = d->engine->scriptValueToJSCValue(value);
d->setProperty(name.d_ptr->identifier, jsValue, flags);
}