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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a5

People

(Reporter: Waldo, Assigned: Waldo)

References

()

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

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.
Attached patch PatchSplinter Review
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 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+
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
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Depends on: 639626
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: