On Sat, Apr 16, 2011 at 1:43 PM, crtmpserver <[email protected]> wrote:

> Ernst, at line 41 if I'm doing
> global->Set(String::New("Point"), functionTemplate->GetFunction());
>

the way i'm doing it is:

Set(..., ctorTmpl->GetFunction() )

where ctorTmpl is my constructor's function template. However, i also see
these comments in my code where i do that:

// In my experience, if GetFunction() is called BEFORE setting up
// the Prototype object, v8 gets very unhappy (class member lookups don't
work?).

but those are from almost 2.5 years ago, so i don't know if that's really a
problem or was a misunderstanding of mine at the time i wrote the code.

Anyway, thank you both for bringing me on the right path and showed me
> the elephant in the room :). Now it works as expected
>

:-D

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to