QtScript: regression with instanceof operator for QMetaObject wrappers
authorKent Hansen <kent.hansen@nokia.com>
Tue, 20 Apr 2010 16:13:02 +0000 (18:13 +0200)
committerKent Hansen <kent.hansen@nokia.com>
Wed, 21 Apr 2010 08:34:36 +0000 (10:34 +0200)
commitbee994a655104e3ac9674c8ac25043f79e01c1e7
treed02332cbccc8e7c1b6d1881aba4f01c4398868cc
parent6c69440513ba9227edc47b6914190434b07ff973
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
src/script/bridge/qscriptqobject_p.h
tests/auto/qscriptengine/tst_qscriptengine.cpp