mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
unknown property access on objects doesn't throw exceptions
This commit is contained in:
parent
d4e623044f
commit
bd47e9b557
@ -188,9 +188,10 @@ function guessSystemTimezone()
|
||||
dump("Guessing system timezone:\n");
|
||||
dump("offset : " + offset + "\ntimezone: " + timezone + "\n");
|
||||
|
||||
try {
|
||||
return tzTable[offset + " " + timezone];
|
||||
} catch(ex) {
|
||||
var tzindex = offset + " " + timezone;
|
||||
if (tzindex in tzTable) {
|
||||
return tzTable[tzindex];
|
||||
} else {
|
||||
// XXX we don't really have a better option here
|
||||
return "floating";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user