Comment #22 on issue 1945 by [email protected]: call SetTime(0,0,0,0) and throws "this is not a Date object." if Date() object has been subclassed
http://code.google.com/p/v8/issues/detail?id=1945

Ditto, thanks yangguo for looking further. In dojo (1.6.1) code, I am able to minimize the problem experienced by users to quite minimum by changing following lines within date.js compare method (compressed module):

dojo.date.compare=function(_b,_c,_d){
_b=new Date(+_b);
_c=new Date(+(_c||new Date()));
if (_d == "date") {
/* IFTI: 02/14/2012 ..... A patch for Google Chrome version 17+ breaks here if double clicked many times, it breaks at setHours, doing it differently here to see if this can work*/ _b = new Date(_b.getFullYear(), _b.getMonth(), _b.getDate(), 0, 0, 0, 0); _c = new Date(_c.getFullYear(), _c.getMonth(), _c.getDate(), 0, 0, 0, 0);
//_b.setHours(0,0,0,0);
//_c.setHours(0,0,0,0);
}else{
if(_d=="time"){
_b.setFullYear(0,0,0);
_c.setFullYear(0,0,0);
}
}


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to