зеркало из https://github.com/mozilla/gecko-dev.git
Comment tweaks (no code changes).
This commit is contained in:
Родитель
dcc1fa5880
Коммит
b0f8b9c81d
|
@ -756,10 +756,11 @@ str_toLocaleLowerCase(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
|
|||
jsval *rval)
|
||||
{
|
||||
JSString *str;
|
||||
/*
|
||||
* Forcibly ignore the first (or any) argument and return toLowerCase(),
|
||||
* ECMA has reserved that argument, presumbaly for defining the locale.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Forcefully ignore the first (or any) argument and return toLowerCase(),
|
||||
* ECMA has reserved that argument, presumably for defining the locale.
|
||||
*/
|
||||
if (cx->localeCallbacks && cx->localeCallbacks->localeToLowerCase) {
|
||||
str = js_ValueToString(cx, OBJECT_TO_JSVAL(obj));
|
||||
if (!str)
|
||||
|
@ -802,10 +803,11 @@ str_toLocaleUpperCase(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
|
|||
jsval *rval)
|
||||
{
|
||||
JSString *str;
|
||||
/*
|
||||
* Forcibly ignore the first (or any) argument and return toLowerCase(),
|
||||
* ECMA has reserved that argument, presumbaly for defining the locale.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Forcefully ignore the first (or any) argument and return toLowerCase(),
|
||||
* ECMA has reserved that argument, presumbaly for defining the locale.
|
||||
*/
|
||||
if (cx->localeCallbacks && cx->localeCallbacks->localeToUpperCase) {
|
||||
str = js_ValueToString(cx, OBJECT_TO_JSVAL(obj));
|
||||
if (!str)
|
||||
|
@ -816,7 +818,8 @@ str_toLocaleUpperCase(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
|
|||
}
|
||||
|
||||
static JSBool
|
||||
str_localeCompare(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
str_localeCompare(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
|
||||
jsval *rval)
|
||||
{
|
||||
JSString *str, *thatStr;
|
||||
|
||||
|
@ -1373,6 +1376,7 @@ find_replen(JSContext *cx, ReplaceData *rdata, size_t *sizep)
|
|||
void *mark;
|
||||
JSStackFrame *fp;
|
||||
JSBool ok;
|
||||
|
||||
/*
|
||||
* Save the rightContext from the current regexp, since it
|
||||
* gets stuck at the end of the replacement string and may
|
||||
|
|
Загрузка…
Ссылка в новой задаче