Oh, ok. Wrong understanding of the externals then. What i would like to do is set to the object a C pointer. Should i be using internal fields for that?

On 09/08/2011 08:45 AM, Ondřej Žára wrote:
Externals should be (only) saved to internal fields. As far as I know, it does not make any sense to make an External accessible from JS by assigning it to an object's property...


O.


2011/9/8 Damianos Mylonakis <[email protected] <mailto:[email protected]>>

    Hello,

    I am new to v8 embedding, so bear with me! I am trying to make a
    zlib library for nodejs. The problem comes up to this function :
    https://gist.github.com/1202435
    Lines 2 and 6 cause a seg fault. s.next_in and s.next_out are
    indeed valid pointers. Is there any special care i need to take to
    set an External to the Object?

    Thank you.
    Damianos.
-- v8-users mailing list
    [email protected] <mailto:[email protected]>
    http://groups.google.com/group/v8-users


--
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

Reply via email to