summaryrefslogtreecommitdiffstats
path: root/src/script/bridge
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2010-04-20 16:13:02 (GMT)
committerKent Hansen <kent.hansen@nokia.com>2010-04-21 08:34:36 (GMT)
commitbee994a655104e3ac9674c8ac25043f79e01c1e7 (patch)
treed02332cbccc8e7c1b6d1881aba4f01c4398868cc /src/script/bridge
parent6c69440513ba9227edc47b6914190434b07ff973 (diff)
downloadQt-bee994a655104e3ac9674c8ac25043f79e01c1e7.zip
Qt-bee994a655104e3ac9674c8ac25043f79e01c1e7.tar.gz
Qt-bee994a655104e3ac9674c8ac25043f79e01c1e7.tar.bz2
QtScript: regression with instanceof operator for QMetaObject wrappers
Tell JavaScriptCore that QMetaObject wrappers can be used as the second operand to instanceof; this is done by setting the ImplementsHasInstance flag. We don't actually have to implement hasInstance() because the default implementation does the right thing. Task-number: QTBUG-8366 Reviewed-by: Olivier Goffart
Diffstat (limited to 'src/script/bridge')
-rw-r--r--src/script/bridge/qscriptqobject_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/bridge/qscriptqobject_p.h b/src/script/bridge/qscriptqobject_p.h
index 448fa99..1866dcb 100644
--- a/src/script/bridge/qscriptqobject_p.h
+++ b/src/script/bridge/qscriptqobject_p.h
@@ -304,7 +304,7 @@ public:
static WTF::PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
{
- return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType));
+ return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, JSC::ImplementsHasInstance));
}
protected: