bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal
This commit is contained in:
@@ -90,9 +90,9 @@ JS_STATIC_ASSERT((1 + 2) * sizeof(JSAtom *) ==
|
||||
offsetof(JSAtomState, typeAtoms) - ATOM_OFFSET_START);
|
||||
|
||||
const char *
|
||||
js_AtomToPrintableString(JSContext *cx, JSAtom *atom)
|
||||
js_AtomToPrintableString(JSContext *cx, JSAtom *atom, JSAutoByteString *bytes)
|
||||
{
|
||||
return js_ValueToPrintableString(cx, StringValue(ATOM_TO_STRING(atom)));
|
||||
return js_ValueToPrintable(cx, StringValue(ATOM_TO_STRING(atom)), bytes);
|
||||
}
|
||||
|
||||
#define JS_PROTO(name,code,init) const char js_##name##_str[] = #name;
|
||||
|
||||
Reference in New Issue
Block a user