Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 4; r=sfink,r=bz

This commit is contained in:
Terrence Cole
2014-01-17 10:08:51 -08:00
parent 9e613cda1e
commit fb06b8575f
22 changed files with 84 additions and 89 deletions

View File

@@ -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