Thank you for answering.

When using v8 you have two option to interface with C/C++ code, either
you make low-level stubs in C++ and do the rest in JS, or, like I was
hoping, using only the C++ API.

I don't really like the first option, parsing files/strings on
startup, limited property option etc,. Native JS syntax would solve
some of the problems but that is only available for internal usage!?
Now it seems the C++ API isn't complete enough for the second option
either.


On Feb 1, 8:59 am, Erik Corry <[email protected]> wrote:
> 2010/1/27 Henrik Lindqvist <[email protected]>:
>
> > Since no one could answer:
> >http://groups.google.com/group/v8-users/browse_thread/thread/66b80bca...
>
> > I'll rephrase the question:
> > How can I inherit from an built-in object, like Date, Error etc, from C
> > ++ code? I see no way to get the FunctionTemplate from an Object. Is
> > there another way than using Inherit, or must I resort to executing JS
> > code?
>
> Unfortunately there is no other way than to use JS code.  You can't do
> this through the API.
>
> I have opened a feature request for this functionality to be added.
>
> http://code.google.com/p/v8/issues/detail?id=595
>
> --
> Erik Corry

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

Reply via email to