| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Flags: --harmony-unicode-regexps | |
| 6 | |
| 7 // test262/data/test/language/literals/regexp/u-dec-esc | |
| 8 assertThrows("/\\1/u"); | |
| 9 // test262/language/literals/regexp/u-invalid-char-range-a | |
| 10 assertThrows("/[\\w-a]/u"); | |
| 11 // test262/language/literals/regexp/u-invalid-char-range-b | |
| 12 assertThrows("/[a-\\w]/u"); | |
| 13 // test262/language/literals/regexp/u-invalid-char-esc | |
| 14 assertThrows("/\\c/u"); | |
| 15 assertThrows("/\\c0/u"); | |
| 16 // test262/built-ins/RegExp/unicode_restricted_quantifiable_assertion | |
| 17 assertThrows("/(?=.)*/u"); | |
| 18 // test262/built-ins/RegExp/unicode_restricted_octal_escape | |
| 19 assertThrows("/[\\1]/u"); | |
| 20 assertThrows("/\\00/u"); | |
| 21 assertThrows("/\\09/u"); | |
| 22 // test262/built-ins/RegExp/unicode_restricted_identity_escape_alpha | |
| 23 assertThrows("/[\\c]/u"); | |
| 24 // test262/built-ins/RegExp/unicode_restricted_identity_escape_c | |
| 25 assertThrows("/[\\c0]/u"); | |
| 26 // test262/built-ins/RegExp/unicode_restricted_incomple_quantifier | |
| 27 assertThrows("/a{/u"); | |
| 28 assertThrows("/a{1,/u"); | |
| 29 assertThrows("/{/u"); | |
| 30 assertThrows("/}/u"); | |
| 31 // test262/data/test/built-ins/RegExp/unicode_restricted_brackets | |
| 32 assertThrows("/]/u"); | |
| 33 // test262/built-ins/RegExp/unicode_identity_escape | |
| 34 /\//u; | |
| OLD | NEW |