We won't always find the prototype property, especially if our __proto__ has been cut off. bug 327608, r=brendan
git-svn-id: svn://10.0.0.236/trunk@190500 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
b0e04729ba
commit
dd4eac4e57
@ -1043,8 +1043,8 @@ fun_enumerate(JSContext *cx, JSObject *obj)
|
||||
prototypeId = ATOM_TO_JSID(cx->runtime->atomState.classPrototypeAtom);
|
||||
if (!OBJ_LOOKUP_PROPERTY(cx, obj, prototypeId, &pobj, &prop))
|
||||
return JS_FALSE;
|
||||
JS_ASSERT(prop);
|
||||
OBJ_DROP_PROPERTY(cx, pobj, prop);
|
||||
if (prop)
|
||||
OBJ_DROP_PROPERTY(cx, pobj, prop);
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user