Fill gaps in frames (caused by metamethod calls) with nil.

Simplifies storing snapshots to stack.
This commit is contained in:
Mike Pall
2010-01-26 00:45:30 +01:00
parent 47f1bc80d8
commit 34d84f8836
3 changed files with 5 additions and 5 deletions

View File

@@ -426,7 +426,7 @@ static BCReg rec_mm_prep(jit_State *J, ASMFunction cont)
#endif
J->base[top] = emitir(IRTG(IR_FRAME, IRT_PTR), trcont, trcont);
for (s = J->maxslot; s < top; s++)
J->base[s] = 0;
J->base[s] = TREF_NIL;
return top+1;
}