зеркало из https://github.com/mozilla/gecko-dev.git
Scripted proxy traps don't guarantee that numeric ids are JSVAL_INT (566806, r=brendan).
This commit is contained in:
Родитель
2e3fcf6766
Коммит
05771704a1
|
@ -455,6 +455,7 @@ ArrayToJSIDArray(JSContext *cx, jsval array, JSIdArray **idap)
|
|||
return false;
|
||||
if (!JS_ValueToId(cx, tvr.value(), &vector[n]))
|
||||
return false;
|
||||
vector[n] = js_CheckForStringIndex(vector[n]);
|
||||
}
|
||||
*idap = ida.steal();
|
||||
return true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче