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

Reply via email to