mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 462851 - Protect against enumerating the call object's prototype. r=brendan a=sayrer
This commit is contained in:
parent
5200089bae
commit
87667890ab
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user