Bug 1133909 - Fix hazards revealed by adding in new GCPointers, r=terrence

This commit is contained in:
Steve Fink
2015-02-24 09:37:13 -08:00
parent 6d0bffcb21
commit b45f9c2bfd
5 changed files with 10 additions and 5 deletions

View File

@@ -3614,7 +3614,8 @@ js::PrimitiveToObject(JSContext *cx, const Value &v)
if (v.isBoolean())
return BooleanObject::create(cx, v.toBoolean());
MOZ_ASSERT(v.isSymbol());
return SymbolObject::create(cx, v.toSymbol());
RootedSymbol symbol(cx, v.toSymbol());
return SymbolObject::create(cx, symbol);
}
/*