Peter Wilson wrote: > On the api where TM returns an object that I originally passed to it, I > get an object which is described as nsIXPCWrappedNative. > TM.merge(aTransaction) is one an example; transactionList.getItem() is > another. > > How can I get back to my original JS object from all these wrapped up > natives?
Are you sure it's nsIXPCWrappedNative and not nsIXPConnectWrappedNative? nsIXPConnectWrappedNative inherits from nsIXPConnectJSObjectHolder which has a JSObject attribute. You should be able to use standard XPCOM get call to retrieve it. You'll find it here -> http://lxr.mozilla.org/seamonkey/source/js/src/xpconnect/idl/nsIXPConnect.idl#143
