Check in smontagu's patch for bug 349488 (r=me).

This commit is contained in:
brendan%mozilla.org 2006-08-23 04:49:11 +00:00
parent 3aec31b74a
commit 96bc42b5b9

View File

@ -379,6 +379,9 @@ num_toLocaleString(JSContext *cx, JSObject *obj, uintN argc,
*tmpDest++ = '\0';
}
if (cx->localeCallbacks && cx->localeCallbacks->localeToUnicode)
return cx->localeCallbacks->localeToUnicode(cx, buf, rval);
str = JS_NewString(cx, buf, size);
if (!str) {
JS_free(cx, buf);