# Tenko parser test case

- Path: tests/testcases/strict_mode/directive_headers/ident_3d_5barguments5d/arrow/assigned_to_in_param_default_w_directive.md

> :: strict mode : directive headers : ident 3d 5barguments5d : arrow
>
> ::> assigned to in param default w directive
>
> the default (always) causes the error, not the usage, but whatever

## Input


`````js
f(x=arguments=10) => { "use strict"; }
`````

## 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!
  Unable to ASI

start@1:0, error@1:18
╔══╦═════════════════
 1 ║ f(x=arguments=10) => { "use strict"; }
   ║                   ^^------- error
╚══╩═════════════════

`````

### Strict mode

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

`````
throws: Parser error!
  Cannot assign to `eval` and `arguments` in strict mode

start@1:0, error@1:13
╔══╦═════════════════
 1 ║ f(x=arguments=10) => { "use strict"; }
   ║              ^------- error
╚══╩═════════════════

`````

### Module goal

Parsed with the module goal.

_Output same as strict 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 strict mode._
