bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal

This commit is contained in:
Igor Bukanov
2010-11-11 21:40:29 +01:00
parent 503d83583a
commit b14cc26d66
49 changed files with 801 additions and 582 deletions

View File

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