summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2012-07-09 20:36:22 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-12 02:07:51 +0200
commitdb17c14cace450e20745839014075c0263f8618f (patch)
tree920278e8344d4b22edc185b08d5f334a87ff6efe /src/script/api
parent2884c5c2fbbe6656f90aa3e1ea828ee67be18c18 (diff)
downloadqtscript-db17c14cace450e20745839014075c0263f8618f.tar.gz
Check that property descriptor members are valid before using them
Even if getPropertyDescriptor() returns true, it's not guaranteed that PropertyDescriptor::setter() or PropertyDescriptor::value() returns a valid JSC value. This code is in an "#ifdef QT_BUILD_SCRIPT_LIB" block, i.e. a patch we added on top of the original JSC sources. The lack of checks caused the getter-in-prototype and indexed-accessors tests from the V8 test suite to assert in debug mode. Task-number: QTBUG-17915 Change-Id: I568d83f2f80b28871ea0d934a8e33078ac8aa3ad Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/script/api')
0 files changed, 0 insertions, 0 deletions