Landing Feng Qian <feng.qian.moz@gmail.com>'s patch for bug 346363, a=schrep

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@207071 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mrbkap%gmail.com
2006-08-10 19:03:17 +00:00
parent 3dc44a25cd
commit 947754c144

View File

@@ -1396,7 +1396,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.;