Trace through parseInt(double), bug 454037 r=gal+brendan.

This commit is contained in:
David Anderson
2008-09-07 02:41:10 -05:00
parent 65e3301962
commit c1ce4738ef
3 changed files with 10 additions and 0 deletions

View File

@@ -406,6 +406,14 @@ js_ParseInt(JSContext* cx, JSString* str)
return d;
}
jsdouble FASTCALL
js_ParseIntDouble(jsdouble d)
{
if (!JSDOUBLE_IS_FINITE(d))
return js_NaN;
return floor(d);
}
jsval FASTCALL
js_Any_getelem(JSContext* cx, JSObject* obj, JSString* idstr)
{