Closed
Bug 963167
Opened 10 years ago
Closed 10 years ago
JS_SetElement() should take HandleValue rather than MutableHandleValue
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: jonco, Assigned: jonco)
References
Details
Attachments
(2 files)
9.57 KB,
patch
|
sfink
:
review+
|
Details | Diff | Splinter Review |
29.52 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
As was done for the JS_SetProperty() APIs in bug 896949, we should be taking HandleValue for the element value here rather than MutableHandleValue.
Assignee | ||
Comment 1•10 years ago
|
||
Not only that, it would be helpful to overload it as is being done for JS_DefineProperty() in bug 959787 so that we can pass different types without having to root a value every time.
Assignee | ||
Comment 2•10 years ago
|
||
Patch for changes under js/src
Attachment #8365136 -
Flags: review?(sphink)
Assignee | ||
Comment 3•10 years ago
|
||
Patch for changes to the rest of the browser
Attachment #8365137 -
Flags: review?(bzbarsky)
Updated•10 years ago
|
Attachment #8365136 -
Flags: review?(sphink) → review+
Comment 4•10 years ago
|
||
Comment on attachment 8365137 [details] [diff] [review] set-element-browser >- pairVal = JS::ObjectValue(*pair); pairVal is now unused. Kill it off? The vast majority of these callers should be using JS_DefineElement. :( Maybe file a followup bug to fix them up? r=me
Attachment #8365137 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 5•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f613b4ac27f9
Comment 6•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f613b4ac27f9
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in
before you can comment on or make changes to this bug.
Description
•