Scripted proxy traps don't guarantee that numeric ids are JSVAL_INT (566806, r=brendan).

This commit is contained in:
Andreas Gal 2010-05-19 00:21:04 -07:00
Родитель 2e3fcf6766
Коммит 05771704a1
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -455,6 +455,7 @@ ArrayToJSIDArray(JSContext *cx, jsval array, JSIdArray **idap)
return false; return false;
if (!JS_ValueToId(cx, tvr.value(), &vector[n])) if (!JS_ValueToId(cx, tvr.value(), &vector[n]))
return false; return false;
vector[n] = js_CheckForStringIndex(vector[n]);
} }
*idap = ida.steal(); *idap = ida.steal();
return true; return true;