On Sep 29, 2:29 am, [EMAIL PROTECTED] wrote:
> I changed the code to:
>
> ........
> Persistent<Object> self = Persistent<Object>::New(args.Holder());
> self.MakeWeak(p, Point_Destroy);
>
> self->SetInternalField(0, External::New(p));
> return self;
>
> }
>
> void Point_Destroy(Persistent<Object> self, void* parameter)
> {
> delete static_cast<Point*>(parameter);
> }
>
> because in the previous version were some problems when I tested it
> with the javascript file.
What problems did you encounter exactly? I plan to update my original
example code to reflect all the information gathered in this
discussion, so people can have a solid example to work from.
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---