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

Side by Side Diff: test/mjsunit/es6/unicode-regexp-restricted-syntax.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
6
7 // test262/data/test/language/literals/regexp/u-dec-esc 5 // test262/data/test/language/literals/regexp/u-dec-esc
8 assertThrows("/\\1/u", SyntaxError); 6 assertThrows("/\\1/u", SyntaxError);
9 // test262/language/literals/regexp/u-invalid-char-range-a 7 // test262/language/literals/regexp/u-invalid-char-range-a
10 assertThrows("/[\\w-a]/u", SyntaxError); 8 assertThrows("/[\\w-a]/u", SyntaxError);
11 // test262/language/literals/regexp/u-invalid-char-range-b 9 // test262/language/literals/regexp/u-invalid-char-range-b
12 assertThrows("/[a-\\w]/u", SyntaxError); 10 assertThrows("/[a-\\w]/u", SyntaxError);
13 // test262/language/literals/regexp/u-invalid-char-esc 11 // test262/language/literals/regexp/u-invalid-char-esc
14 assertThrows("/\\c/u", SyntaxError); 12 assertThrows("/\\c/u", SyntaxError);
15 assertThrows("/\\c0/u", SyntaxError); 13 assertThrows("/\\c0/u", SyntaxError);
16 // test262/built-ins/RegExp/unicode_restricted_quantifiable_assertion 14 // test262/built-ins/RegExp/unicode_restricted_quantifiable_assertion
(...skipping 18 matching lines...) Expand all
35 33
36 // escaped \0 is allowed inside a character class. 34 // escaped \0 is allowed inside a character class.
37 assertEquals(["\0"], /[\0]/u.exec("\0")); 35 assertEquals(["\0"], /[\0]/u.exec("\0"));
38 // unless it is followed by another digit. 36 // unless it is followed by another digit.
39 assertThrows("/[\\00]/u", SyntaxError); 37 assertThrows("/[\\00]/u", SyntaxError);
40 assertThrows("/[\\01]/u", SyntaxError); 38 assertThrows("/[\\01]/u", SyntaxError);
41 assertThrows("/[\\09]/u", SyntaxError); 39 assertThrows("/[\\09]/u", SyntaxError);
42 assertEquals(["\u{0}1\u{0}a\u{0}"], /[1\0a]+/u.exec("b\u{0}1\u{0}a\u{0}2")); 40 assertEquals(["\u{0}1\u{0}a\u{0}"], /[1\0a]+/u.exec("b\u{0}1\u{0}a\u{0}2"));
43 // escaped \- is allowed inside a character class. 41 // escaped \- is allowed inside a character class.
44 assertEquals(["-"], /[a\-z]/u.exec("12-34")); 42 assertEquals(["-"], /[a\-z]/u.exec("12-34"));
OLDNEW
« no previous file with comments | « test/mjsunit/es6/unicode-regexp-last-index.js ('k') | test/mjsunit/es6/unicode-regexp-unanchored-advance.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698