Re: RegExp support in WebIDL

Lachlan Hunt:
> Is there any reason to leave RegExp unsupported in WebIDL?

No, it sounds reasonable to have.  I've added it:

   http://dev.w3.org/2006/webapi/WebIDL/#idl-RegExp
   http://dev.w3.org/2006/webapi/WebIDL/#es-RegExp
   http://dev.w3.org/2006/webapi/WebIDL/#dfn-distinguishable

Similar to what Garrett pointed out with String.prototype.match, I've 
made conversions to the RegExp type pass the value to the RegExp 
constructor (if the value isn't already a RegExp object).

Received on Thursday, 8 November 2012 00:39:20 UTC