Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1388)

Side by Side Diff: test/mjsunit/es6/unicode-regexp-backrefs.js

Issue 2096933002: Remove all harmony runtime flags which shipped in M51 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --harmony-unicode-regexps --harmony-regexp-lookbehind 5 // Flags: --harmony-regexp-lookbehind
6 6
7 // Back reference does not end in the middle of a surrogate pair. 7 // Back reference does not end in the middle of a surrogate pair.
8 function replace(string) { 8 function replace(string) {
9 return string.replace(/L/g, "\ud800") 9 return string.replace(/L/g, "\ud800")
10 .replace(/l/g, "\ud801") 10 .replace(/l/g, "\ud801")
11 .replace(/T/g, "\udc00") 11 .replace(/T/g, "\udc00")
12 .replace(/\./g, "[^]"); 12 .replace(/\./g, "[^]");
13 } 13 }
14 14
15 function test(expectation, regexp_source, subject) { 15 function test(expectation, regexp_source, subject) {
(...skipping 28 matching lines...) Expand all
44 test(null, "([^x]+)x*\\1", "LTxT"); 44 test(null, "([^x]+)x*\\1", "LTxT");
45 test(null, "([^x]+)x*\\1", "xLxLT"); 45 test(null, "([^x]+)x*\\1", "xLxLT");
46 test(null, "([^x]+)x*\\1", "xTxLT"); 46 test(null, "([^x]+)x*\\1", "xTxLT");
47 test(null, "([^x]+)x*\\1", "xLTxL"); 47 test(null, "([^x]+)x*\\1", "xLTxL");
48 test(null, "([^x]+)x*\\1", "xLTxT"); 48 test(null, "([^x]+)x*\\1", "xLTxT");
49 test(null, "([^x]+)x*\\1", "xxxLxxLTxx"); 49 test(null, "([^x]+)x*\\1", "xxxLxxLTxx");
50 test(null, "([^x]+)x*\\1", "xxxTxxLTxx"); 50 test(null, "([^x]+)x*\\1", "xxxTxxLTxx");
51 test(null, "([^x]+)x*\\1", "xxxLTxxLxx"); 51 test(null, "([^x]+)x*\\1", "xxxLTxxLxx");
52 test(null, "([^x]+)x*\\1", "xxxLTxxTxx"); 52 test(null, "([^x]+)x*\\1", "xxxLTxxTxx");
53 test(["LTTxxLTT", "LTT"], "([^x]+)x*\\1", "xxxLTTxxLTTxx"); 53 test(["LTTxxLTT", "LTT"], "([^x]+)x*\\1", "xxxLTTxxLTTxx");
OLDNEW
« no previous file with comments | « test/mjsunit/es6/unicode-escapes-in-regexps.js ('k') | test/mjsunit/es6/unicode-regexp-ignore-case.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698