Ignore:
Timestamp:
Jul 1, 2011, 11:19:17 AM (14 years ago)
Author:
[email protected]
Message:

https://bugs.webkit.org/show_bug.cgi?id=63819
Escaping of forwardslashes in strings incorrect if multiple exist.

Reviewed by Sam Weinig.

Source/JavaScriptCore:

The bug is in the parameters passed to a substring - should be
start & length, but we're passing start & end indices!

  • runtime/RegExpObject.cpp:

(JSC::regExpObjectSource):

LayoutTests:

Add tests with multiple forward slashes.

  • fast/regex/script-tests/toString.js:
  • fast/regex/toString-expected.txt:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r90241 r90247  
     12011-07-01  Gavin Barraclough  <[email protected]>
     2
     3        Reviewed by Sam Weinig.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=63819
     6        Escaping of forwardslashes in strings incorrect if multiple exist.
     7
     8        The bug is in the parameters passed to a substring - should be
     9        start & length, but we're passing start & end indices!
     10
     11        * runtime/RegExpObject.cpp:
     12        (JSC::regExpObjectSource):
     13
    1142011-07-01  Adam Roben  <[email protected]>
    215
Note: See TracChangeset for help on using the changeset viewer.