Details
-
Suggestion
-
Resolution: Invalid
-
P3: Somewhat important
-
4.3.2
-
None
Description
Consider a call exposed to the QScriptEngine, with the following property:
Q_PROPERTY(QString name READ getName)
Then consider the following script, in which the second assignment will leave the value of theBadName undefined, with no indication to the script writer that nameFoo is not a valid property:
var theName = myObj.name;
var theBadName = myObj.nameFoo;
Thus, it would be nice if an exception was thrown if a property is attempted read, which does not exist. This could for example be a QObjectWrapOption.