зеркало из https://github.com/mozilla/gecko-dev.git
Bug 462851 - Protect against enumerating the call object's prototype. r=brendan a=sayrer
This commit is contained in:
Родитель
d979e4bcfa
Коммит
46be28138a
|
@ -714,7 +714,7 @@ call_enumerate(JSContext *cx, JSObject *obj)
|
|||
JSProperty *prop;
|
||||
|
||||
fun = js_GetCallObjectFunction(obj);
|
||||
n = JS_GET_LOCAL_NAME_COUNT(fun);
|
||||
n = fun ? JS_GET_LOCAL_NAME_COUNT(fun) : 0;
|
||||
if (n == 0)
|
||||
return JS_TRUE;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче