v8/test/webkit/fast/regex
Patrick Thier 17b9d8728a [regexp] Add missing case for EscapeRegExpPattern
EscapeRegExpPattern should return a string representation of a
RegExp instance that in turn can be used to construct a new
RegExp instance with the same internal state as the original one.

Previous versions incorrectly escaped '/' also inside character classes
(e.g. /[/]/ returned "[\/]").

This patch properly escapes '/' when necessary and omits unnecessary
escapes.

Bug: v8:8615, v8:1982, v8:9446
Change-Id: I4ecb993dc69d6976f4637cedf43465cd0c32e427
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1688050
Commit-Queue: Patrick Thier <pthier@google.com>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62587}
2019-07-09 08:11:51 +00:00
..
alternative-length-miscalculation-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
alternative-length-miscalculation.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
assertion-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
assertion.js Make sure files end with exactly one new line and police this in presubmit. 2013-11-22 13:50:39 +00:00
constructor-expected.txt Introduce a BuiltinsConstructStub that sets up new.target and does a [[call]] per ES6 9.3.2 2015-11-19 16:11:09 +00:00
constructor.js Introduce a BuiltinsConstructStub that sets up new.target and does a [[call]] per ES6 9.3.2 2015-11-19 16:11:09 +00:00
dotstar-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
dotstar.js Make sure files end with exactly one new line and police this in presubmit. 2013-11-22 13:50:39 +00:00
early-acid3-86-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
early-acid3-86.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
ecma-regex-examples-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
ecma-regex-examples.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
invalid-range-in-class-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
invalid-range-in-class.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
lastIndex-expected.txt Reland of Put RegExp js code in strict mode (patchset #2 id:20001 of https://codereview.chromium.or… (patchset #2 id:20001 of https://codereview.chromium.org/2112713003/ ) 2016-09-15 19:21:12 +00:00
lastIndex.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
malformed-escapes-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
malformed-escapes.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
non-capturing-backtracking-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
non-capturing-backtracking.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
overflow-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
overflow.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
parentheses-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
parentheses.js Make sure files end with exactly one new line and police this in presubmit. 2013-11-22 13:50:39 +00:00
pcre-test-4-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
pcre-test-4.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
quantified-assertions-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
quantified-assertions.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
repeat-match-waldemar-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
repeat-match-waldemar.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
toString-expected.txt [regexp] Add missing case for EscapeRegExpPattern 2019-07-09 08:11:51 +00:00
toString.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
unicodeCaseInsensitive-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
unicodeCaseInsensitive.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00