Fix async identifier parsing in class field position (#4949)
This patch fixes #4927 JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
This commit is contained in:
@@ -2861,7 +2861,7 @@ scanner_scan_all (parser_context_t *context_p) /**< context */
|
||||
continue;
|
||||
}
|
||||
|
||||
if (literal_pool_flags != SCANNER_LITERAL_POOL_FUNCTION)
|
||||
if (literal_pool_flags & SCANNER_LITERAL_POOL_GENERATOR)
|
||||
{
|
||||
scanner_raise_error (context_p);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user