Fix constructor bytecode generation for conditional values.

master
Mike Pall 2010-02-08 16:08:58 +01:00
parent f86f9e8eec
commit 2ddea3838d
1 changed files with 1 additions and 1 deletions

View File

@ -1348,8 +1348,8 @@ static void expr_table(LexState *ls, ExpDesc *e)
if (val.k == VKSTR)
lj_gc_objbarriert(fs->L, t, val.u.sval);
} else {
if (val.k != VCALL) { expr_toanyreg(fs, &val); vcall = 0; }
if (expr_isk(&key)) expr_index(fs, e, &key);
if (val.k != VCALL) vcall = 0;
bcemit_store(fs, e, &val);
}
fs->freereg = freg;