Closed Bug 1144819 Opened 9 years ago Closed 9 years ago

Change JS_DefineProperty APIs to treat getter/setter=nullptr as indicating class getter/setter ops only for data properties

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: jorendorff, Assigned: jorendorff)

References

Details

Attachments

(1 file)

In particular, when JSPROP_GETTER is present but JSPROP_SETTER is not, and the setter argument is null, we should not use the class setter.

This is part of shifting all DefineProperty APIs toward standard semantics, so blocks bug 1125624.
Blocks: 1125624
Assignee: nobody → jorendorff
Status: NEW → ASSIGNED
Attachment #8579966 - Flags: review?(jwalden+bmo) → review+
https://hg.mozilla.org/mozilla-central/rev/3e8cc3750b9c
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: