Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/character-class-range-no-dash-start.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright 2018 Mathias Bynens. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 author: Mathias Bynens
7 description: >
8 NonemptyClassRangesNoDash :: ClassAtomNoDash - ClassAtom ClassRanges
9
10 It is a Syntax Error if IsCharacterClass of ClassAtomNoDash is true or
11 IsCharacterClass of ClassAtom is true.
12 esid: sec-patterns-static-semantics-early-errors
13 negative:
14 phase: parse
15 type: SyntaxError
16 features: [regexp-unicode-property-escapes]
17 ---*/
18
19 $DONOTEVALUATE();
20
21 /[\p{Hex}-\uFFFF]/u;