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

20 lines
351 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
id: sec-unary-operators
description: >
ExponentiationExpression :
UnaryExpression
...
UnaryExpression :
...
`+` UnaryExpression
...
negative: SyntaxError
---*/
+1 ** 2;