tests/auto/qml/ecmascripttests/test262/test/language/literals/regexp/u-invalid-identity-escape.js
raw symbols SCIP| 1 | // Copyright (C) 2016 the V8 project authors. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | /*--- |
| 4 | esid: sec-patterns |
| 5 | es6id: 21.2.1 |
| 6 | description: Support for UnicodeIDContinue in IdentityEscape |
| 7 | info: | |
| 8 | IdentityEscape[U] :: |
| 9 | [+U] SyntaxCharacter |
| 10 | [+U] / |
| 11 | [~U] SourceCharacter but not UnicodeIDContinue |
| 12 | |
| 13 | The `u` flag precludes the use of characters in UnicodeIDContinue |
| 14 | irrespective of the presence of Annex B extensions. |
| 15 | negative: |
| 16 | phase: parse |
| 17 | type: SyntaxError |
| 18 | ---*/ |
| 19 | |
| 20 | throw "Test262: This statement should not be evaluated."; |
| 21 | |
| 22 | /\M/u; |