test262/test/language/expressions/exponentiation/exp-operator-syntax-error-p...

26 lines
488 B
JavaScript
Raw Normal View History

2014-12-14 01:01:34 +01:00
// Copyright (C) 2016 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Rick Waldron
2016-02-22 20:46:39 +01:00
esid: sec-unary-operators
2016-02-23 22:42:11 +01:00
description: Exponentiation Expression syntax error, `+` UnaryExpression
info: |
2014-12-14 01:01:34 +01:00
ExponentiationExpression :
UnaryExpression
...
UnaryExpression :
...
`+` UnaryExpression
...
features: [exponentiation]
2014-12-14 01:01:34 +01:00
negative:
phase: parse
type: SyntaxError
2014-12-14 01:01:34 +01:00
---*/
$DONOTEVALUATE();
2014-12-14 01:01:34 +01:00
+1 ** 2;