FFI: Catch various NYI cases while recording.

This commit is contained in:
Mike Pall
2010-12-28 19:09:01 +01:00
parent a70fb9416a
commit d176433e32
2 changed files with 7 additions and 2 deletions

View File

@@ -266,6 +266,10 @@ static void LJ_FASTCALL recff_tonumber(jit_State *J, RecordFFData *rd)
recff_nyiu(J); /* Would need an inverted STRTO for this case. */
tr = emitir(IRTG(IR_STRTO, IRT_NUM), tr, 0);
}
#if LJ_HASFFI
} else if (tref_iscdata(tr)) {
recff_nyiu(J);
#endif
} else {
tr = TREF_NIL;
}