Bug 658909 - Add a new, much simpler API for getting WNs from JS objects. r=mrbkap

This commit is contained in:
Bobby Holley 2013-03-16 22:58:15 -07:00
parent d18489beb3
commit d09761116c

View File

@ -2687,6 +2687,11 @@ public:
void
SetSet(XPCNativeSet* set) {XPCAutoLock al(GetLock()); mSet = set;}
static XPCWrappedNative* Get(JSObject *obj) {
MOZ_ASSERT(IS_WN_WRAPPER(obj));
return (XPCWrappedNative*)js::GetObjectPrivate(obj);
}
private:
inline void
ExpireWrapper()