Bug 881517 - Just use Object.prototype for vanilla XPCWNs. r=mrbkap

This commit is contained in:
Bobby Holley 2013-06-12 14:10:53 -07:00
parent 67247ff208
commit a40787493c

View File

@ -1115,8 +1115,7 @@ XPCWrappedNative::Init(HandleObject parent,
JSObject* protoJSObject = HasProto() ? JSObject* protoJSObject = HasProto() ?
GetProto()->GetJSProtoObject() : GetProto()->GetJSProtoObject() :
GetScope()->GetPrototypeNoHelper(); JS_GetObjectPrototype(cx, parent);
if (!protoJSObject) { if (!protoJSObject) {
return false; return false;
} }