On Fri, Aug 27, 2010 at 7:21 PM, Mihai Parparita <[email protected]> wrote:
> On Thu, Aug 26, 2010 at 11:28 PM, Mads Sig Ager <[email protected]> wrote:
>> It should be fairly simple to add if you want to give it a
>> shot. Otherwise, please file a V8 bug and we will put it in the queue
>> of things to add.
>
> Thanks. I've filed http://code.google.com/p/v8/issues/detail?id=852.
>
> I can look into adding it myself, do you have any pointers to similar
> changes? Does it make sense to expose all of JSRegExp?

Thanks for filing the bug report. I think you should expose only what
you need in the beginning and we can evolve the API from there. I
would create a new RegExp subclass of Object in include/v8.h following
the style for the other classes. I think GetPattern(), GetFlags(),
New(pattern, flags) and a cast method would be a good start.

Cheers,     -- Mads

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

Reply via email to