Fix http://bugs.webkit.org/show_bug.cgi?id=17925 and http://bugs.webkit.org/show_bug...
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Mar 2008 01:50:11 +0000 (01:50 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Mar 2008 01:50:11 +0000 (01:50 +0000)
commit47f87f5f2585865ee6831da4a1e3070a2d39b533
treed83939911ba65109463340c1d413f4e0ad188e9d
parentc9365a0d3eb37dd599517b04de35248082e9d933
Fix bugs.webkit.org/show_bug.cgi?id=17925 and http://bugs.webkit.org/show_bug.cgi?id=17927.
- Bug 17925: Crash in KJS::JSObject::put after setting this.__proto__
- Bug 17927: Hang after attempting to create circular __proto__

* kjs/object.cpp:
(KJS::JSObject::put): Silently ignore attempts to set __proto__ to a non-object, non-null value.
Return after setting the exception when an attempt to set a cyclic __proto__ is detected so that
the cyclic value is not set.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@31145 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/object.cpp
LayoutTests/ChangeLog
LayoutTests/fast/js/cyclic-proto-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/cyclic-proto.html [new file with mode: 0644]
LayoutTests/fast/js/non-object-proto-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/non-object-proto.html [new file with mode: 0644]
LayoutTests/fast/js/resources/cyclic-proto.js [new file with mode: 0644]
LayoutTests/fast/js/resources/non-object-proto.js [new file with mode: 0644]