Subj : Reserving another slot for private data To : netscape.public.mozilla.jseng From : Sterling Bates Date : Thu Apr 22 2004 12:55 pm I need to store within each object a reference back to the Delphi object. I can currently do so with standard JS objects, but I need the same for strings and doubles, which occupy their standard private slot. So I think I would use this slot like so: 1. Implement JSClass.reserveSlots to return 1 (since I only need one slot.) 2. After the object is created, use JS_SetReservedSlot to assign the slot value. 3. When I need to get the Delphi object reference, call JS_GetReservedSlot. The problem is that conversion to & from a jsval could drop the left-most bit in the pointer, which would be problematic. Is that actually an issue, and how could I avoid this? Sterling .