There is an Assertion 'context.status_flags & PARSER_SCANNING_SUCCESSFUL' failed at js-parser.c:2185 in parser_parse_source in JerryScript 2.2.0.
###### JerryScript revision
d06c3a7

###### Build platform
Ubuntu 16.04.6 LTS (Linux 4.15.0-99-generic x86_64)

###### Build steps
```
python tools/build.py --profile=es2015-subset --lto=off --compile-flag=-g \
--error-messages=on --debug --compile-flag=-g --strip=off --logging=on \
--compile-flag=-fsanitize=address --stack-limit=15
```


###### Test case
```
var a = {
"foo//b",
};
```

###### Output
```
ICE: Assertion 'context.status_flags & PARSER_SCANNING_SUCCESSFUL' failed at /home/JerryScript/jerryscript/jerry-core/parser/js/js-parser.c(parser_parse_source):2185.
Error: ERR_FAILED_INTERNAL_ASSERTION
Aborted (core dumped)
```

Credits: This vulnerability is detected by chong from OWL337.

Assertion 'context.status_flags & PARSER_SCANNING_SUCCESSFUL' in parser_parse_source
This is a GitHub Issue
repo:jerryscript
owner:jerryscript-project
Title : Assertion 'context.status_flags & PARSER_SCANNING_SUCCESSFUL' in parser_parse_source
Issue date:

--- start body ---
###### JerryScript revision
d06c3a7

###### Build platform
Ubuntu 16.04.6 LTS (Linux 4.15.0-99-generic x86_64)

###### Build steps
```
python tools/build.py --profile=es2015-subset --lto=off --compile-flag=-g \
--error-messages=on --debug --compile-flag=-g --strip=off --logging=on \
--compile-flag=-fsanitize=address --stack-limit=15
```


###### Test case
```
var a = {
"foo//b",
};
```

###### Output
```
ICE: Assertion 'context.status_flags & PARSER_SCANNING_SUCCESSFUL' failed at /home/JerryScript/jerryscript/jerry-core/parser/js/js-parser.c(parser_parse_source):2185.
Error: ERR_FAILED_INTERNAL_ASSERTION
Aborted (core dumped)
```

Credits: This vulnerability is detected by chong from OWL337.

--- end body ---

An internal assertion failure in the JerryScript parser can lead to a Denial of Service (DoS) when processing specially crafted JavaScript code. The assertion 'context.status_flags & PARSER_SCANNING_SUCCESSFUL' fails, indicating that the parser encountered an unexpected state, which results in the program aborting and potentially crashing.