Status: New
Owner: ----

New issue 956 by JanDeMooij: RegExp.prototype.toString does not escape slashes
http://code.google.com/p/v8/issues/detail?id=956

Consider this: RegExp("abc/def").toString()

Result in FF and Opera: /abc\/def/
Result in Chrome and Safari: /abc/def/

ES5 15.10.6.4 mentions this:
===
NOTE The returned String has the form of a RegularExpressionLiteral that evaluates to another RegExp object with the same behaviour as this object.
===

/abc/def/is invalid as regexp literal, so the behavior is different in Safari/Chrome.

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

Reply via email to