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:
Bobby Holley 2012-07-27 12:15:46 +02:00
parent 5b1a44348d
commit 5a7d569a9a

View File

@ -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;