Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Issue 2904015: Fix bug in Object.isFrozen which always classifies non-extensible objects as ... (Closed)

Created:
10 years, 5 months ago by Rico
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

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. Committed: http://code.google.com/p/v8/source/detail?r=5068

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
M src/v8natives.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/object-freeze.js View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Rico
10 years, 5 months ago (2010-07-14 12:19:49 UTC) #1
Mads Ager (chromium)
10 years, 5 months ago (2010-07-14 12:42:01 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698