Comment #3 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
new RegExp("/").toString() also has different behaviour between V8 and JSC. JSC will return "/\//" where V8 returns "///".
The standard says that RegExp.prototype.toString must return '/' + source + '/', and also states that the result must be a valid RegularExpressionLiteral. These two requirements are clearly contradictory, and JSC seems to be standardizing on the second of the two.
-- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
