Hi Charles, I would use internal fields for that. I would create the JS wrappers from templates specifying a number of internal fields and use Set/GetPointerInInternalField to get and set them. Internal fields are faster to access than hidden properties.
Cheers, -- Mads On Mon, May 2, 2011 at 11:08 PM, Charles Lowell <[email protected]>wrote: > Hi, > > I make extensive use of Get/SetHiddenValue() on Object (as I'm sure > everybody does) to store external references to native peers. My > question is if there is a "best practice" (or any practice for that > matter) for storing peers on any Value? > > cheers, > Charles > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
