Add iterator close support for array destructuring (#3337)
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
committed by
Zoltan Herczeg
parent
6b43ef8605
commit
2ddf134cef
@@ -2491,8 +2491,8 @@ parser_parse_array_initializer (parser_context_t *context_p, /**< context */
|
||||
}
|
||||
}
|
||||
|
||||
/* pop the iterator */
|
||||
parser_emit_cbc (context_p, CBC_POP);
|
||||
/* close the iterator */
|
||||
parser_emit_cbc_ext (context_p, CBC_EXT_ITERATOR_CLOSE);
|
||||
|
||||
parser_pattern_finalize (context_p, flags, &end_pos);
|
||||
} /* parser_parse_array_initializer */
|
||||
|
||||
Reference in New Issue
Block a user