Bug 1122552 - Introduce [[GetOwnProperty]] object op. r=jorendorff,bz
This commit is contained in:
@@ -3196,8 +3196,8 @@ bool
|
||||
js::GetOwnPropertyDescriptor(JSContext *cx, HandleObject obj, HandleId id,
|
||||
MutableHandle<PropertyDescriptor> desc)
|
||||
{
|
||||
if (obj->is<ProxyObject>())
|
||||
return Proxy::getOwnPropertyDescriptor(cx, obj, id, desc);
|
||||
if (GetOwnPropertyOp op = obj->getOps()->getOwnPropertyDescriptor)
|
||||
return op(cx, obj, id, desc);
|
||||
|
||||
RootedObject pobj(cx);
|
||||
RootedShape shape(cx);
|
||||
|
||||
Reference in New Issue
Block a user