Closed
Bug 884371
Opened 12 years ago
Closed 12 years ago
Remove JSMutableHandleXXX typedefs
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: jonco, Assigned: jonco)
References
Details
Attachments
(3 files)
35.23 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
27.66 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
16.72 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
The agreed convention is to use JS::MutableHandle<JS::Whatever> in the browser and JS::MutableHandleWhatever in js source, so we should get rid of these typedefs.
Use the browser convention in jsapi.h to provide an example for callers.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #764208 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #764209 -
Flags: review?(bobbyholley+bmo)
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #764210 -
Flags: review?(terrence)
Updated•12 years ago
|
Attachment #764209 -
Flags: review?(bobbyholley+bmo) → review+
![]() |
||
Comment 4•12 years ago
|
||
Comment on attachment 764208 [details] [diff] [review]
1 - Remove JSMutableHandleXXX from the browser
r=me
Attachment #764208 -
Flags: review?(bzbarsky) → review+
Comment 5•12 years ago
|
||
Comment on attachment 764210 [details] [diff] [review]
3 - Remove JSMutableHandleXXX from the js/src directory
Review of attachment 764210 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for doing this, Jon!
::: js/src/jsapi.h
@@ -724,5 @@
> typedef JS::Handle<jsid> JSHandleId;
>
> -typedef JS::MutableHandle<JSFunction*> JSMutableHandleFunction;
> -typedef JS::MutableHandle<JSString*> JSMutableHandleString;
> -typedef JS::MutableHandle<JS::Value> JSMutableHandleValue;
\o/
Attachment #764210 -
Flags: review?(terrence) → review+
Comment 6•12 years ago
|
||
How about the non-mutable variants?
Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/693f9855e226
https://hg.mozilla.org/mozilla-central/rev/f126bff5d429
https://hg.mozilla.org/mozilla-central/rev/ccdd6aa7b488
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•