Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / RegExp / unicode_character_class_backspace_escape.js
blobaefd40fcb324fa16e14a3aa25799f645192c549d
1 // Copyright (C) 2020 Alexey Shvayka. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: prod-ClassEscapes
6 description: >
7   \b escape inside CharacterClass is valid in Unicode patterns (unlike \B).
8 info: |
9   ClassEscape[U] ::
10     b
12   Static Semantics: CharacterValue
14   ClassEscape :: b
16   1. Return the code point value of U+0008 (BACKSPACE).
17 ---*/
19 assert(/[\b]/u.test('\u0008'));
20 assert(/[\b-A]/u.test('A'));
22 reportCompare(0, 0);