Fix structured cloning deserialization bug that could create invalid Date objects. Bug 602806, r=gal.
This commit is contained in:
@@ -152,7 +152,6 @@ using namespace js;
|
||||
* Supporting functions - ECMA 15.9.1.*
|
||||
*/
|
||||
|
||||
#define HalfTimeDomain 8.64e15
|
||||
#define HoursPerDay 24.0
|
||||
#define MinutesPerDay (HoursPerDay * MinutesPerHour)
|
||||
#define MinutesPerHour 60.0
|
||||
@@ -482,10 +481,6 @@ msFromTime(jsdouble t)
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TIMECLIP(d) ((JSDOUBLE_IS_FINITE(d) \
|
||||
&& !((d < 0 ? -d : d) > HalfTimeDomain)) \
|
||||
? js_DoubleToInteger(d + (+0.)) : js_NaN)
|
||||
|
||||
/**
|
||||
* end of ECMA 'support' functions
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user