# Tenko parser test case

- Path: tests/testcases/exponentiation_op/statement/2b_lhs_is_not_allowed.md

> :: exponentiation op : statement
>
> ::> 2b lhs is not allowed
>
> the prefix minus is just a unary operator and not part of the number token, and not allowed as the lhs to **

## Input

`````js
+x ** 2;
`````

## Output

_Note: the whole output block is auto-generated. Manual changes will be overwritten!_

Below follow outputs in five parsing modes: sloppy, sloppy+annexb, strict script, module, module+annexb.

Note that the output parts are auto-generated by the test runner to reflect actual result.

### Sloppy mode

Parsed with script goal and as if the code did not start with strict mode header.

`````
throws: Parser error!
  The lhs of ** can not be this kind of unary expression (syntactically not allowed, you have to wrap something)

start@1:0, error@1:3
╔══╦════════════════
 1 ║ +x ** 2;
   ║    ^^------- error
╚══╩════════════════

`````

### Strict mode

Parsed with script goal but as if it was starting with `"use strict"` at the top.

_Output same as sloppy mode._

### Module goal

Parsed with the module goal.

_Output same as sloppy mode._

### Sloppy mode with AnnexB

Parsed with script goal with AnnexB rules enabled and as if the code did not start with strict mode header.

_Output same as sloppy mode._

### Module goal with AnnexB

Parsed with the module goal with AnnexB rules enabled.

_Output same as sloppy mode._
