[Qtscript-bindings] QScriptValue::isFunction() in 4.5
syntheticpp at gmx.net
syntheticpp at gmx.net
Tue Jan 6 10:10:34 CET 2009
Thanks for the quick answer Kent.
But maybe there is a bug in the handling of 'instanceof'.
With the Qt patch below my script works again:
@@ -1294,7 +1294,7 @@ Ltop:
QScriptValueImpl object = stackPtr[-1];
QScriptValueImpl ctor = stackPtr[0];
- if (!ctor.isObject() || !ctor.implementsHasInstance()) {
+ if (!ctor.isQObject() && (!ctor.isObject() || !ctor.implementsHasInstance())) {
stackPtr -= 2;
throwTypeError(QLatin1String("invalid 'instanceof' operand"));
HandleException();
Doesn't QObject implement hasInstance()?
Peter
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
More information about the Qtscript-bindings
mailing list