зеркало из https://github.com/mozilla/pjs.git
Bug #32937, toLocaleString added to Number class.
This commit is contained in:
Родитель
fdba51a861
Коммит
4cfd991214
|
@ -108,6 +108,10 @@ public class NativeNumber extends ScriptableObject {
|
|||
return doubleValue;
|
||||
}
|
||||
|
||||
public String jsFunction_toLocaleString(Object arg) {
|
||||
return toString();
|
||||
}
|
||||
|
||||
public String jsFunction_toFixed(Object arg) {
|
||||
/* We allow a larger range of precision than
|
||||
ECMA requires; this is permitted by ECMA. */
|
||||
|
|
|
@ -108,6 +108,10 @@ public class NativeNumber extends ScriptableObject {
|
|||
return doubleValue;
|
||||
}
|
||||
|
||||
public String jsFunction_toLocaleString(Object arg) {
|
||||
return toString();
|
||||
}
|
||||
|
||||
public String jsFunction_toFixed(Object arg) {
|
||||
/* We allow a larger range of precision than
|
||||
ECMA requires; this is permitted by ECMA. */
|
||||
|
|
Загрузка…
Ссылка в новой задаче