Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/exponentiation/exp-operator-syntax-error-bitnot-unary-expression-base.js

raw
1 // Copyright (C) 2016 Rick Waldron. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 author: Rick Waldron
6 esid: sec-unary-operators
7 description: Exponentiation Expression syntax error, `~` UnaryExpression
8 info: |
9 ExponentiationExpression :
10 UnaryExpression
11 ...
12
13 UnaryExpression :
14 ...
15 `~` UnaryExpression
16 ...
17
18 negative:
19 phase: parse
20 type: SyntaxError
21 ---*/
22
23 throw "Test262: This statement should not be evaluated.";
24 ~3 ** 2;