Details
-
Bug
-
Resolution: Invalid
-
P4: Low
-
None
-
4.6.0
-
None
Description
Arguably it should return an accessor descriptor, since the property is implemented using getter/setter functions.
Creating the data descriptor means that we have to call the getter itself. Since we use getOwnPropertyDescriptor() to implement QScriptValue::propertyFlags(), this call is unexpected and unnecessary.
In order to return an accessor descriptor, we would have to create function objects that bind the property name (since the QScriptClass methods themselves are catch-all accessors). Is it worth it...?
Attachments
Issue Links
- relates to
-
QTBUG-16480 Get rid of QScriptValue::propertyFlags() and friends
-
- Closed
-