Crash accessing static property on sealed object
authorAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Tue, 16 Aug 2011 20:10:03 +0000 (17:10 -0300)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Wed, 17 Aug 2011 13:19:58 +0000 (10:19 -0300)
commitd054da8fd1752501582c12cb24cf9a7489e0f9e6
treed124674675402f37f2e1dc5470735e6be51affda
parent0e9f086adb423a785038bc12e7a646620a890f7a
Crash accessing static property on sealed object
https://bugs.webkit.org/show_bug.cgi?id=66242

Author: Gavin Barraclough <barraclough@apple.com>
Reviewed by Sam Weinig.

Source/JavaScriptCore:

* runtime/JSObject.h:
(JSC::JSObject::putDirectInternal):
    - should only check isExtensible if checkReadOnly.

LayoutTests:

* fast/js/preventExtensions-expected.txt:
* fast/js/script-tests/preventExtensions.js:
    - added test case.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93048 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Conflicts:

LayoutTests/fast/js/preventExtensions-expected.txt
LayoutTests/fast/js/script-tests/preventExtensions.js
LayoutTests/ChangeLog
LayoutTests/fast/js/preventExtensions-expected.txt
LayoutTests/fast/js/script-tests/preventExtensions.js
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/JSObject.h