Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/literals/regexp/early-err-pattern.js

raw
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-primary-expression-regular-expression-literals-static-semantics-early-errors
5 info: |
6 PrimaryExpression : RegularExpressionLiteral
7
8 description: >
9 It is a Syntax Error if BodyText of RegularExpressionLiteral cannot be recognized using the goal symbol Pattern of the ECMAScript RegExp grammar specified in #sec-patterns.
10 negative:
11 phase: parse
12 type: SyntaxError
13 ---*/
14
15 throw "Test262: This statement should not be evaluated.";
16
17 /?/;