Bug 908891 - Fix remaining exact rooting hazards in js/ipc; r=evilpie

This commit is contained in:
Terrence Cole
2013-08-23 15:53:46 -07:00
parent c50b09fe5c
commit 52775ce274
2 changed files with 11 additions and 10 deletions

View File

@@ -168,7 +168,7 @@ JavaScriptShared::toVariant(JSContext *cx, jsval from, JSVariant *to)
case JSTYPE_OBJECT:
case JSTYPE_FUNCTION:
{
JSObject *obj = from.toObjectOrNull();
RootedObject obj(cx, from.toObjectOrNull());
if (!obj) {
JS_ASSERT(from == JSVAL_NULL);
*to = uint64_t(0);