Bug 1017323 - Add-on interposition (r=bholley)

This commit is contained in:
Bill McCloskey
2014-07-14 22:10:05 -07:00
parent 43da8d0c59
commit 0bd4266507
20 changed files with 635 additions and 27 deletions

View File

@@ -679,19 +679,6 @@ Trap2(JSContext *cx, HandleObject handler, HandleValue fval, HandleId id, Value
return Trap(cx, handler, fval, 2, argv.begin(), rval);
}
static bool
ParsePropertyDescriptorObject(JSContext *cx, HandleObject obj, const Value &v,
MutableHandle<PropertyDescriptor> desc, bool complete = false)
{
Rooted<PropDesc> d(cx);
if (!d.initialize(cx, v))
return false;
if (complete)
d.complete();
d.populatePropertyDescriptor(obj, desc);
return true;
}
static bool
IndicatePropertyNotFound(MutableHandle<PropertyDescriptor> desc)
{