mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 00:25:27 +00:00
Check in smontagu's patch for bug 349488 (r=me).
This commit is contained in:
parent
3aec31b74a
commit
96bc42b5b9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user