Den 6. maj 2010 20.24 skrev vlad <[email protected]>:

> There is no such api :(
>

I think a patch to add it would be accepted.  We already have IsArray in
include/v8.h and src/api.cc so adding the similar function for regexps
should be fairly simple.

See http://code.google.com/p/v8/wiki/Contributing


>
> On May 6, 11:15 am, Camilo Aguilar <[email protected]> wrote:
> > Try with IsRegExp():
> >
> > args[0]->IsRegExp();
> >
> > Camilo Aguilar
> >
> > On Thu, May 6, 2010 at 1:40 PM, vlad <[email protected]> wrote:
> > > Hi,
> > > Sorry for may be dump question, but is there easy way to check on C++
> > > side if v8::Object is RegExp type or inherit one?
> > > I thought it is possible using HasInstance() of FunctionTemplate, but
> > > does FunctionTemplate exists for RegExp object?
> >
> > > Thanks
> > > Vlad
> >
> > > --
> > > 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
>
> --
> 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