mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 881517 - Just use Object.prototype for vanilla XPCWNs. r=mrbkap
This commit is contained in:
parent
67247ff208
commit
a40787493c
@ -1115,8 +1115,7 @@ XPCWrappedNative::Init(HandleObject parent,
|
||||
|
||||
JSObject* protoJSObject = HasProto() ?
|
||||
GetProto()->GetJSProtoObject() :
|
||||
GetScope()->GetPrototypeNoHelper();
|
||||
|
||||
JS_GetObjectPrototype(cx, parent);
|
||||
if (!protoJSObject) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user