Trace through Math.log as a known native (bug 453868, r=brendan).

This commit is contained in:
David Anderson
2008-09-05 14:25:01 -07:00
parent b0d51cbf6e
commit 491653583c
5 changed files with 26 additions and 3 deletions

View File

@@ -186,6 +186,16 @@ js_Math_sqrt(jsdouble d)
return sqrt(d);
}
jsdouble FASTCALL
js_Math_log(jsdouble d)
{
#if !JS_USE_FDLIBM_MATH && defined(SOLARIS) && defined(__GNUC__)
if (d < 0)
return js_NaN;
#endif
return log(d);
}
JSBool FASTCALL
js_Array_dense_setelem(JSContext* cx, JSObject* obj, jsint i, jsval v)
{