W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2012

Re: RegExp support in WebIDL

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 08 Nov 2012 11:38:46 +1100
Message-ID: <509AFF16.6060602@mcc.id.au>
To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
CC: public-script-coord@w3.org
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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:07 UTC