On 08-Apr-15 17:45, Sze Howe Koh wrote: > May I suggest adding a bit of documentation on our side to help people > discover the features? Currently, > http://doc.qt.io/qt-5/qjsengine.html#script-exceptions only recommends > using toString() to probe errors. That's an ideal place to add a list > of standard and non-standard properties that users can take advantage > of.
Point taken. In the light that the most interesting properties here are non-standard I agree that we should extend the docs. > Going off on a slight tangent: > https://doc.qt.io/qt-5/qjsvalue.html#toVariant says that an Object "is > converted to a QVariantMap. Each property is converted to a QVariant, > recursively". However, calling toVariant() on an Error object > (isError() == isObject() == true) produces an empty QVariantMap event > though QJSValueIterator gets the properties just fine (using Qt > 5.4.1). Is this expected? I cannot answer this. But I wouldn't have expected this behavior. :) BR, Joerg _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
