Closed
Bug 550402
Opened 16 years ago
Closed 16 years ago
Property readonly bit interferes with setter functions in properties
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a5
People
(Reporter: Waldo, Assigned: Waldo)
References
(
URL
)
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
|
4.51 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
Per ES5 the readonly bit should be meaningless for accessor descriptors. This is one of a few problems with how js_SetPropertyHelper works compared to what ES5 requires, if memory serves -- will get to this soon.
| Assignee | ||
Comment 1•16 years ago
|
||
There's likely more ES-conforming cleanup here, but one step at a time. I need this for the patch to remove old-style getters/setters (which don't incidentally set the readonly bit in accessor descriptors, while Object.defineProperty does), so this is all I'm doing for now.
Attachment #436728 -
Flags: review?(jorendorff)
Comment 2•16 years ago
|
||
Comment on attachment 436728 [details] [diff] [review]
Patch
Looks good! Please also tidy up the one remaining use of the read_only_error label. r=me with that.
Attachment #436728 -
Flags: review?(jorendorff) → review+
| Assignee | ||
Comment 3•16 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/53e381fe0f8b
Still the one followup to fix (and the problem is reasonably clear in hindsight), but beyond that I think we're good here.
Whiteboard: fixed-in-tracemonkey
Target Milestone: mozilla1.9.3a3 → mozilla1.9.3a5
Comment 4•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•