mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 760109 - Don't force wrappers to use the wrapped proto if they decide to use something different. r=mrbkap
This commit is contained in:
parent
5e19f9433d
commit
122bba8b43
@ -288,9 +288,6 @@ JSCompartment::wrap(JSContext *cx, Value *vp)
|
||||
|
||||
vp->setObject(*wrapper);
|
||||
|
||||
if (wrapper->getProto() != proto && !SetProto(cx, wrapper, proto, false))
|
||||
return false;
|
||||
|
||||
if (!crossCompartmentWrappers.put(key, *vp))
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user