Closed
Bug 871192
Opened 12 years ago
Closed 12 years ago
Fix more rooting hazards in the JS debugger
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
9.45 KB,
patch
|
till
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #748483 -
Flags: review?(tschneidereit)
Comment 1•12 years ago
|
||
Comment on attachment 748483 [details] [diff] [review]
Patch (v1)
Review of attachment 748483 [details] [diff] [review]:
-----------------------------------------------------------------
Nice, thanks!
::: js/jsd/jsd_scpt.cpp
@@ +59,5 @@
>
> static JSDScript*
> _newJSDScript(JSDContext* jsdc,
> JSContext *cx,
> + JSScript *scrpt)
At least inside of js/src, we append a "_" to the name instead of mangling it like this. I think I'd prefer that in jsd, too.
@@ +281,5 @@
>
> JSDScript *
> jsd_FindOrCreateJSDScript(JSDContext *jsdc,
> JSContext *cx,
> + JSScript *scrpt,
See above
@@ +673,5 @@
>
> void
> jsd_DestroyScriptHookProc(
> JSFreeOp *fop,
> + JSScript *scrpt,
same
@@ +777,3 @@
> jsval closure)
> {
> + JS::RootedScript script(cx, scrpt);
same
::: js/jsd/jsd_xpc.cpp
@@ +994,5 @@
> jsdScript::CreatePPLineMap()
> {
> JSContext *cx = JSD_GetDefaultJSContext (mCx);
> JSAutoRequest ar(cx);
> + JS::RootedObject obj(cx, JS_NewObject(cx, NULL, NULL, NULL));
Please add a NULL check for the newly created object, while you're already in here.
Attachment #748483 -
Flags: review?(tschneidereit) → review+
Assignee | ||
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Status: NEW → 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
•