Comment #5 on issue 1982 by [email protected]: RegExp.source should return a valid pattern for an empty RegExp
http://code.google.com/p/v8/issues/detail?id=1982

Erik, toString should use the 'source' property of the regexp object, which Section 15.10.4.1 specifies to be the properly escaped version of the original string. The same paragraph also specifies explicitly that 'source' should be set to "(?:)" if the original string is empty.

So no contradiction, we are just wrong.


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

Reply via email to