Fix bug in Object.isFrozen which always classifies non-extensible objects as frozen.
authorricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 14 Jul 2010 13:15:43 +0000 (13:15 +0000)
committerricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 14 Jul 2010 13:15:43 +0000 (13:15 +0000)
commite2fab5fd9f2bb9a588fbdd7e8f8d26f4d0e535b4
treebcaf11297385cb21a3ed5492bc78c077b0c42166
parentdb233217043ac3c9f3b467caab3daea241be8e51
Fix bug in Object.isFrozen which always classifies non-extensible objects as frozen.

Since out internal representation of a property descriptor does not have configurable and writable
attributes Object.isFrozen returns true whenever an object is not extensible.
This change makes use of the right method calls on our internal representation (isWritable() and
isConfigurable()). Tests added directly to the mjsunit test.

Review URL: http://codereview.chromium.org/2904015

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5068 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/v8natives.js
test/mjsunit/object-freeze.js