mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Fix constructor bytecode generation for conditional values.
This commit is contained in:
parent
f86f9e8eec
commit
2ddea3838d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user