unknown property access on objects doesn't throw exceptions

This commit is contained in:
vladimir%pobox.com 2005-05-23 21:18:37 +00:00
Родитель 614424ff81
Коммит 47971b5897
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -188,9 +188,10 @@ function guessSystemTimezone()
dump("Guessing system timezone:\n"); dump("Guessing system timezone:\n");
dump("offset : " + offset + "\ntimezone: " + timezone + "\n"); dump("offset : " + offset + "\ntimezone: " + timezone + "\n");
try { var tzindex = offset + " " + timezone;
return tzTable[offset + " " + timezone]; if (tzindex in tzTable) {
} catch(ex) { return tzTable[tzindex];
} else {
// XXX we don't really have a better option here // XXX we don't really have a better option here
return "floating"; return "floating";
} }