Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/literals/regexp/u-dec-esc.js

raw
1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 description: DecimalEscape used with `u` flag
6 info: |
7 DecimalEscape is not allowed when the `u` flag is set (regardless of Annex
8 B extensions--see ES6 section B.1.4).
9 es6id: 21.2.1
10 negative:
11 phase: parse
12 type: SyntaxError
13 ---*/
14
15 throw "Test262: This statement should not be evaluated.";
16
17 /\1/u;