Bug 1122552 - Introduce [[GetOwnProperty]] object op. r=jorendorff,bz

This commit is contained in:
Tom Schuster
2015-01-22 17:17:26 +01:00
parent 8463712640
commit 598e20943c
12 changed files with 134 additions and 4 deletions

View File

@@ -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);