Closed
Bug 855582
Opened 12 years ago
Closed 12 years ago
Make various bindings static variables const
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(2 files, 1 obsolete file)
5.29 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
17.33 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
We have JSFunctionSpecs and the like, and we should make all that stuff const.
![]() |
Assignee | |
Comment 1•12 years ago
|
||
Attachment #730500 -
Flags: review?(jwalden+bmo)
![]() |
Assignee | |
Comment 2•12 years ago
|
||
Attachment #730504 -
Flags: review?(khuey)
![]() |
Assignee | |
Comment 3•12 years ago
|
||
Attachment #730762 -
Flags: review?(khuey)
![]() |
Assignee | |
Updated•12 years ago
|
Attachment #730504 -
Attachment is obsolete: true
Attachment #730504 -
Flags: review?(khuey)
Comment 4•12 years ago
|
||
Comment on attachment 730500 [details] [diff] [review]
part 1. Make JS_DefineFunctions and JS_DefineProperties take const function specs and property specs respectively.
Review of attachment 730500 [details] [diff] [review]:
-----------------------------------------------------------------
Please update https://developer.mozilla.org/en-US/docs/SpiderMonkey/JSAPI_Reference/JS_DefineProperties and https://developer.mozilla.org/en-US/docs/SpiderMonkey/JSAPI_Reference/JS_DefineFunctions with a note similar to what's on https://developer.mozilla.org/en-US/docs/SpiderMonkey/JSAPI_Reference/JS_GetClass to note the interface change.
This lack-of-const has been something that's been around forever, and a whole ton of callers have non-const static data as a result. At least file a followup or something to add const to all of those? I'd say better if you did it, but it's really not a good use of your time.
Attachment #730500 -
Flags: review?(jwalden+bmo) → review+
Attachment #730762 -
Flags: review?(khuey) → review+
![]() |
Assignee | |
Comment 5•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ec0ffeafb128
https://hg.mozilla.org/integration/mozilla-inbound/rev/b6771a98037b
and I've updated the documentation. Please check over that part, because the versioning is... you know.
Flags: in-testsuite-
Whiteboard: [need review]
Target Milestone: --- → mozilla23
Comment 7•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ec0ffeafb128
https://hg.mozilla.org/mozilla-central/rev/b6771a98037b
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•