Bug 1008441 - Make Object.defineProperty(proxy, desc) only parse desc once. r=efaust.
This commit is contained in:
@@ -2383,15 +2383,6 @@ Proxy::defineProperty(JSContext *cx, HandleObject proxy, HandleId id,
|
||||
return proxy->as<ProxyObject>().handler()->defineProperty(cx, proxy, id, desc);
|
||||
}
|
||||
|
||||
bool
|
||||
Proxy::defineProperty(JSContext *cx, HandleObject proxy, HandleId id, HandleValue v)
|
||||
{
|
||||
JS_CHECK_RECURSION(cx, return false);
|
||||
Rooted<PropertyDescriptor> desc(cx);
|
||||
return ParsePropertyDescriptorObject(cx, proxy, v, &desc) &&
|
||||
Proxy::defineProperty(cx, proxy, id, &desc);
|
||||
}
|
||||
|
||||
bool
|
||||
Proxy::getOwnPropertyNames(JSContext *cx, HandleObject proxy, AutoIdVector &props)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user