-
barraclough@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=79059 Reviewed by Oliver Hunt. ObjectPrototype caches whether it contains any numeric properties (m_hasNoPropertiesWithUInt32Names), calls to defineOwnProperty need to update this cache. Source/JavaScriptCore: * runtime/ObjectPrototype.cpp: (JSC::ObjectPrototype::put): (JSC::ObjectPrototype::defineOwnProperty): (JSC): (JSC::ObjectPrototype::getOwnPropertySlotByIndex): * runtime/ObjectPrototype.h: (ObjectPrototype): LayoutTests: * fast/js/Object-defineProperty-expected.txt: * fast/js/script-tests/Object-defineProperty.js: (shouldBe.shouldBe.shouldBe.shouldBe.shouldBe.shouldBe.shouldBe.shouldThrow.Object.defineProperty): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108282 268f45cc-cd09-0410-ab3c-d52691b4dbfc
59111917