Check the correct variable. Patch from Feng Qian <feng.qian.moz@gmail.com>, bug 346363, r=mrbkap

This commit is contained in:
mrbkap%gmail.com 2006-08-01 22:19:32 +00:00
parent 69b8a08b75
commit 42cc127d61

View File

@ -1438,7 +1438,7 @@ date_makeDate(JSContext *cx, JSObject *obj, uintN argc,
/* return NaN if date is NaN and we're not setting the year,
* If we are, use 0 as the time. */
if (!(JSDOUBLE_IS_FINITE(result))) {
if (argc < 3)
if (maxargs < 3)
return js_NewNumberValue(cx, result, rval);
else
lorutime = +0.;