diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2010-11-08 14:03:05 (GMT) |
---|---|---|
committer | Kent Hansen <kent.hansen@nokia.com> | 2010-11-08 14:50:00 (GMT) |
commit | 626f13421baf258407f03e3bf21ed67138d55ea4 (patch) | |
tree | 9d445d9b709f57734c515e752c46d8c3bf9704cd /projects.pro | |
parent | a3a84a872bb731d375a431626ccfcde5a660dd72 (diff) | |
download | Qt-626f13421baf258407f03e3bf21ed67138d55ea4.zip Qt-626f13421baf258407f03e3bf21ed67138d55ea4.tar.gz Qt-626f13421baf258407f03e3bf21ed67138d55ea4.tar.bz2 |
Don't crash if QScriptClass property getter returns an invalid value
It's possible that a class claims to have a property of a given name
(i.e. queryProperty() returns true), but returns an invalid value
for that property. In that case we should silently convert the value
to undefined, otherwise the value may wreak havoc in JS.
This is a regression from Qt 4.5 (pre-JavaScriptCore-based), which
had this check.
Task-number: QTBUG-15079
Reviewed-by: Jedrzej Nowacki
Diffstat (limited to 'projects.pro')
0 files changed, 0 insertions, 0 deletions