Bug 765341 - Change js_ValueToAtom to return a JSAtom* directly, and rename it to js::ToAtom. r=sfink

This commit is contained in:
Jeff Walden
2012-06-12 16:03:10 -07:00
parent ef5f2ee15a
commit ed75e61940
9 changed files with 39 additions and 35 deletions

View File

@@ -522,8 +522,8 @@ InternNonIntElementId(JSContext *cx, JSObject *obj, const Value &idval,
}
#endif
JSAtom *atom;
if (!js_ValueToAtom(cx, idval, &atom))
JSAtom *atom = ToAtom(cx, idval);
if (!atom)
return false;
*idp = AtomToId(atom);