зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug:
Hello Norris The script should return 0, Rhino returns NaN Steven <script> var trial = parseInt("0)"); alert(trial); </script>
This commit is contained in:
Родитель
8bb4a031bf
Коммит
113dae7eb7
|
@ -237,7 +237,7 @@ public class NativeGlobal implements IdFunctionMaster {
|
|||
if (c == 'x' || c == 'X') {
|
||||
radix = 16;
|
||||
start += 2;
|
||||
} else if (c != '.') {
|
||||
} else if ('0' <= c && c <= '9') {
|
||||
radix = 8;
|
||||
start++;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче