Remove CBC_EXT_CONTINUE_EXEC opcode. (#3378)
There is no need for a specific opcode after yield because the return and throw commands can be redirected to fake byte code sequences. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -1573,7 +1573,6 @@ parser_parse_unary_expression (parser_context_t *context_p, /**< context */
|
||||
}
|
||||
|
||||
parser_emit_cbc_ext (context_p, CBC_EXT_YIELD);
|
||||
parser_emit_cbc_ext (context_p, CBC_EXT_CONTINUE_EXEC);
|
||||
|
||||
return (context_p->token.type != LEXER_RIGHT_PAREN
|
||||
&& context_p->token.type != LEXER_COMMA);
|
||||
|
||||
Reference in New Issue
Block a user