Hello Norris

The script should return 0, Rhino returns NaN

Steven

<script>
var trial = parseInt("0)");
alert(trial);
</script>
This commit is contained in:
nboyd%atg.com 2001-09-23 20:01:31 +00:00
Родитель 8bb4a031bf
Коммит 113dae7eb7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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++;
}