Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 4; r=sfink,r=bz
This commit is contained in:
@@ -137,7 +137,7 @@ bool
|
||||
JavaScriptShared::convertIdToGeckoString(JSContext *cx, JS::HandleId id, nsString *to)
|
||||
{
|
||||
RootedValue idval(cx);
|
||||
if (!JS_IdToValue(cx, id, idval.address()))
|
||||
if (!JS_IdToValue(cx, id, &idval))
|
||||
return false;
|
||||
|
||||
RootedString str(cx, ToString(cx, idval));
|
||||
@@ -159,7 +159,7 @@ JavaScriptShared::convertGeckoStringToId(JSContext *cx, const nsString &from, JS
|
||||
if (!str)
|
||||
return false;
|
||||
|
||||
return JS_ValueToId(cx, StringValue(str), to.address());
|
||||
return JS_ValueToId(cx, StringValue(str), to);
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user