added make_association, pop_into_association_key, pop_into_association_value byte codes to support assocation expressions

This commit is contained in:
hyunghwan.chung
2017-02-05 15:05:25 +00:00
parent eb83c8d83a
commit 60c38a1ecb
5 changed files with 77 additions and 5 deletions

View File

@ -3993,7 +3993,6 @@ static int compile_array_expression (moo_t* moo)
index = 0;
do
{
/* TODO: check if index exceeds the index that the BCODE_POP_INTO_ARRAY and BCODE_MAKE_ARRAY can support */
if (compile_method_expression (moo, 0) <= -1) return -1;
if (emit_single_param_instruction (moo, BCODE_POP_INTO_ARRAY, index) <= -1) return -1;
index++;