Subj : Re: SpiderMonkey: implement property of type object with get/set methods To : netscape.public.mozilla.jseng From : "Yuraukar" Date : Fri Sep 26 2003 08:57 pm > you can't return a c++ object, because spidermonkey has no knowledge of > it. What you need to return is a JS object-wrapper for the account class. > > --BDS I am aware of that - sorry for the very brief description. I have managed to wrap the Customer class so it is usable from JavaScript, e.g. the "id" property can be accessed via c = new Customer(); x = c.id This is not the issue. I can also wrap the Account class accordinly, so a = new Account() would work. However, my problem is how to return the object from the property get function of class Customer. Yuraukar .