###### JerryScript revision
9ff25dbc

###### Build platform
Linux-5.8.0-59-generic-x86_64-with-Ubuntu-20.04-focal

###### Build steps
```
./tools/build.py --clean --debug \
--profile=es2015-subset \
--error-messages=on --logging=on \
```

###### Test case
```javascript

class b extends { length : class d

```


###### Output
```text
ICE: Assertion 'context_p->scope_stack_size == PARSER_MAXIMUM_DEPTH_OF_SCOPE_STACK' failed at jerryscript//jerry-core/parser/js/js-parser-expr.c(parser_parse_class):993.
Error: ERR_FAILED_INTERNAL_ASSERTION
```



###### Backtrace
```text
bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff7de4859 in __GI_abort () at abort.c:79
#2  0x0000555555617755 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at /jerryscript/jerry-port/default/default-fatal.c:30
#3  0x00005555555b2193 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at /jerryscript/jerry-core/jrt/jrt-fatals.c:63
#4  0x00005555555b21e9 in jerry_assert_fail (assertion=0x5555556253c0 "context_p->scope_stack_size == PARSER_MAXIMUM_DEPTH_OF_SCOPE_STACK", 
    file=0x55555562cca0 "/jerryscript/jerry-core/parser/js/js-parser-expr.c", function=0x555555642940 <__func__.6583.lto_priv.1> "parser_parse_class", line=993)
    at /jerryscript/jerry-core/jrt/jrt-fatals.c:87
#5  0x00005555556049bf in parser_parse_class (context_p=0x7fffffffd8c0, is_statement=false) at /jerryscript/jerry-core/parser/js/js-parser-expr.c:993
#6  0x0000555555606d3d in parser_parse_unary_expression (context_p=0x7fffffffd8c0, grouping_level_p=0x7fffffffd620) at /jerryscript/jerry-core/parser/js/js-parser-expr.c:2233
#7  0x000055555560a6b4 in parser_parse_expression (context_p=0x7fffffffd8c0, options=4) at /jerryscript/jerry-core/parser/js/js-parser-expr.c:3970
#8  0x00005555556056a0 in parser_parse_object_literal (context_p=0x7fffffffd8c0) at /jerryscript/jerry-core/parser/js/js-parser-expr.c:1475
#9  0x0000555555606a27 in parser_parse_unary_expression (context_p=0x7fffffffd8c0, grouping_level_p=0x7fffffffd760) at /jerryscript/jerry-core/parser/js/js-parser-expr.c:2143
#10 0x000055555560a6b4 in parser_parse_expression (context_p=0x7fffffffd8c0, options=1) at /jerryscript/jerry-core/parser/js/js-parser-expr.c:3970
#11 0x0000555555604aa4 in parser_parse_class (context_p=0x7fffffffd8c0, is_statement=true) at /jerryscript/jerry-core/parser/js/js-parser-expr.c:1018
#12 0x00005555556124e3 in parser_parse_statements (context_p=0x7fffffffd8c0) at /jerryscript/jerry-core/parser/js/js-parser-statm.c:2983
#13 0x00005555555b9613 in parser_parse_source (arg_list_p=0x0, arg_list_size=0, source_p=0x5555556de490 "class b extends { length: class d\n", source_size=34, parse_opts=0, options_p=0x7fffffffdc90)
    at /jerryscript/jerry-core/parser/js/js-parser.c:2006
#14 0x00005555555bb032 in parser_parse_script (arg_list_p=0x0, arg_list_size=0, source_p=0x5555556de490 "class b extends { length: class d\n", source_size=34, parse_opts=0, options_p=0x7fffffffdc90)
    at /jerryscript/jerry-core/parser/js/js-parser.c:2907
#15 0x000055555555ee34 in jerry_parse (source_p=0x5555556de490 "class b extends { length: class d\n", source_size=34, options_p=0x7fffffffdc90) at /jerryscript/jerry-core/api/jerry.c:435
#16 0x000055555555bcf9 in main (argc=2, argv=0x7fffffffdf38) at /jerryscript/jerry-main/main-jerry.c:162
```


<sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with jerryscript-machinator. </sup>
Assertion context_p->scope_stack_size == PARSER_MAXIMUM_DEPTH_OF_SCOPE_STACK in parser_parse_class
This is a GitHub Issue
repo:jerryscript
owner:jerryscript-project
Title : Assertion context_p->scope_stack_size == PARSER_MAXIMUM_DEPTH_OF_SCOPE_STACK in parser_parse_class
Issue date:

--- start body ---
###### JerryScript revision
9ff25dbc

###### Build platform
Linux-5.8.0-59-generic-x86_64-with-Ubuntu-20.04-focal

###### Build steps
```
./tools/build.py --clean --debug \
--profile=es2015-subset \
--error-messages=on --logging=on \
```

###### Test case
```javascript

class b extends { length : class d

```


###### Output
```text
ICE: Assertion 'context_p->scope_stack_size == PARSER_MAXIMUM_DEPTH_OF_SCOPE_STACK' failed at jerryscript//jerry-core/parser/js/js-parser-expr.c(parser_parse_class):993.
Error: ERR_FAILED_INTERNAL_ASSERTION
```



###### Backtrace
```text
bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff7de4859 in __GI_abort () at abort.c:79
#2  0x0000555555617755 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at /jerryscript/jerry-port/default/default-fatal.c:30
#3  0x00005555555b2193 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at /jerryscript/jerry-core/jrt/jrt-fatals.c:63
#4  0x00005555555b21e9 in jerry_assert_fail (assertion=0x5555556253c0 "context_p->scope_stack_size == PARSER_MAXIMUM_DEPTH_OF_SCOPE_STACK", 
    file=0x55555562cca0 "/jerryscript/jerry-core/parser/js/js-parser-expr.c", function=0x555555642940 <__func__.6583.lto_priv.1> "parser_parse_class", line=993)
    at /jerryscript/jerry-core/jrt/jrt-fatals.c:87
#5  0x00005555556049bf in parser_parse_class (context_p=0x7fffffffd8c0, is_statement=false) at /jerryscript/jerry-core/parser/js/js-parser-expr.c:993
#6  0x0000555555606d3d in parser_parse_unary_expression (context_p=0x7fffffffd8c0, grouping_level_p=0x7fffffffd620) at /jerryscript/jerry-core/parser/js/js-parser-expr.c:2233
#7  0x000055555560a6b4 in parser_parse_expression (context_p=0x7fffffffd8c0, options=4) at /jerryscript/jerry-core/parser/js/js-parser-expr.c:3970
#8  0x00005555556056a0 in parser_parse_object_literal (context_p=0x7fffffffd8c0) at /jerryscript/jerry-core/parser/js/js-parser-expr.c:1475
#9  0x0000555555606a27 in parser_parse_unary_expression (context_p=0x7fffffffd8c0, grouping_level_p=0x7fffffffd760) at /jerryscript/jerry-core/parser/js/js-parser-expr.c:2143
#10 0x000055555560a6b4 in parser_parse_expression (context_p=0x7fffffffd8c0, options=1) at /jerryscript/jerry-core/parser/js/js-parser-expr.c:3970
#11 0x0000555555604aa4 in parser_parse_class (context_p=0x7fffffffd8c0, is_statement=true) at /jerryscript/jerry-core/parser/js/js-parser-expr.c:1018
#12 0x00005555556124e3 in parser_parse_statements (context_p=0x7fffffffd8c0) at /jerryscript/jerry-core/parser/js/js-parser-statm.c:2983
#13 0x00005555555b9613 in parser_parse_source (arg_list_p=0x0, arg_list_size=0, source_p=0x5555556de490 "class b extends { length: class d\n", source_size=34, parse_opts=0, options_p=0x7fffffffdc90)
    at /jerryscript/jerry-core/parser/js/js-parser.c:2006
#14 0x00005555555bb032 in parser_parse_script (arg_list_p=0x0, arg_list_size=0, source_p=0x5555556de490 "class b extends { length: class d\n", source_size=34, parse_opts=0, options_p=0x7fffffffdc90)
    at /jerryscript/jerry-core/parser/js/js-parser.c:2907
#15 0x000055555555ee34 in jerry_parse (source_p=0x5555556de490 "class b extends { length: class d\n", source_size=34, options_p=0x7fffffffdc90) at /jerryscript/jerry-core/api/jerry.c:435
#16 0x000055555555bcf9 in main (argc=2, argv=0x7fffffffdf38) at /jerryscript/jerry-main/main-jerry.c:162
```


<sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with jerryscript-machinator. </sup>
--- end body ---
