Debian Codegraph @

js/src/tests/test262/language/expressions/exponentiation/exp-operator-syntax-error-bitnot-unary-expression-base.js

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