Bug 509857 - Get rid of DTOA_LOCK. r=jwalden.

This commit is contained in:
Jason Orendorff
2010-03-22 18:21:10 -05:00
parent cfa738765d
commit 27dfe81940
10 changed files with 323 additions and 262 deletions

View File

@@ -2175,7 +2175,7 @@ date_toSource(JSContext *cx, uintN argc, jsval *vp)
if (!GetUTCTime(cx, JS_THIS_OBJECT(cx, vp), vp, &utctime))
return JS_FALSE;
numStr = JS_dtostr(buf, sizeof buf, DTOSTR_STANDARD, 0, utctime);
numStr = js_dtostr(JS_THREAD_DATA(cx)->dtoaState, buf, sizeof buf, DTOSTR_STANDARD, 0, utctime);
if (!numStr) {
JS_ReportOutOfMemory(cx);
return JS_FALSE;