12013-04-02 Mark Hahnenberg <mhahnenberg@apple.com>
2
3 get_by_pname can become confused when iterating over objects with static properties
4 https://bugs.webkit.org/show_bug.cgi?id=113831
5
6 Reviewed by NOBODY (OOPS!).
7
8 get_by_pname doesn't take static properties into account when using a JSPropertyNameIterator to directly
9 access an object's backing store. One way to fix this is to not cache any properties when iterating over
10 objects with static properties. This patch fixes the bug that was originally reported on swisscom.ch.
11
12 * runtime/JSObject.cpp:
13 (JSC::JSObject::getOwnNonIndexPropertyNames):
14 * runtime/JSPropertyNameIterator.cpp:
15 (JSC::JSPropertyNameIterator::create):
16 * runtime/PropertyNameArray.h:
17 (JSC::PropertyNameArray::PropertyNameArray):
18 (JSC::PropertyNameArray::numCacheableSlots):
19 (JSC::PropertyNameArray::setNumCacheableSlots):
20 (PropertyNameArray):
21