mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Check the correct variable. Patch from Feng Qian <feng.qian.moz@gmail.com>, bug 346363, r=mrbkap
This commit is contained in:
parent
69b8a08b75
commit
42cc127d61
@ -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.;
|
||||
|
Loading…
Reference in New Issue
Block a user