JavaScript Test Library - fix MakeDate, bug 341554, a=bsmedberg for checkin to a closed tree
git-svn-id: svn://10.0.0.236/trunk@199886 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
371e2674d1
commit
06574832ee
@ -652,13 +652,11 @@ function TimeInMonth( month, leap ) {
|
||||
}
|
||||
function MakeDate( day, time ) {
|
||||
if ( day == Number.POSITIVE_INFINITY ||
|
||||
day == Number.NEGATIVE_INFINITY ||
|
||||
day == Number.NaN ) {
|
||||
day == Number.NEGATIVE_INFINITY ) {
|
||||
return Number.NaN;
|
||||
}
|
||||
if ( time == Number.POSITIVE_INFINITY ||
|
||||
time == Number.POSITIVE_INFINITY ||
|
||||
day == Number.NaN) {
|
||||
time == Number.NEGATIVE_INFINITY ) {
|
||||
return Number.NaN;
|
||||
}
|
||||
return ( day * msPerDay ) + time;
|
||||
|
||||
@ -654,13 +654,11 @@ function TimeInMonth( month, leap ) {
|
||||
}
|
||||
function MakeDate( day, time ) {
|
||||
if ( day == Number.POSITIVE_INFINITY ||
|
||||
day == Number.NEGATIVE_INFINITY ||
|
||||
day == Number.NaN ) {
|
||||
day == Number.NEGATIVE_INFINITY ) {
|
||||
return Number.NaN;
|
||||
}
|
||||
if ( time == Number.POSITIVE_INFINITY ||
|
||||
time == Number.POSITIVE_INFINITY ||
|
||||
day == Number.NaN) {
|
||||
time == Number.NEGATIVE_INFINITY ) {
|
||||
return Number.NaN;
|
||||
}
|
||||
return ( day * msPerDay ) + time;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user