Backed out changeset 8ac7fa583164 (bug 975042)

This commit is contained in:
Carsten "Tomcat" Book 2014-03-21 08:47:44 +01:00
parent 9f94fcc80e
commit ba5d2ea41e

View File

@ -344,15 +344,7 @@ public:
JS::HandleObject target,
JS::MutableHandleObject protop)
{
RootedObject holder(cx, ensureHolder(cx, wrapper));
JSProtoKey key = isPrototype(holder) ? JSProto_Object
: getProtoKey(holder);
{
JSAutoCompartment ac(cx, target);
if (!JS_GetClassPrototype(cx, key, protop))
return nullptr;
}
return JS_WrapObject(cx, protop);
MOZ_ASSUME_UNREACHABLE("Not yet implemented");
}
virtual void preserveWrapper(JSObject *target) {