Bug 518663 - Fix some typos in JSAutoTempValueRooter uses. r=dvander

This commit is contained in:
Jeff Walden
2009-09-24 14:48:24 -07:00
parent 61d18ec752
commit a7b0c2bc2f
2 changed files with 4 additions and 4 deletions

View File

@@ -1718,7 +1718,7 @@ InitArrayElements(JSContext *cx, JSObject *obj, jsuint start, jsuint count, jsva
if (!dp)
return JS_FALSE;
tmp[0] = DOUBLE_TO_JSVAL(dp);
JSAutoTempValueRooter(cx, JS_ARRAY_LENGTH(tmp), tmp);
JSAutoTempValueRooter tvr(cx, JS_ARRAY_LENGTH(tmp), tmp);
JSAutoTempIdRooter idr(cx);
do {
tmp[1] = *vector++;