Closed nyankers closed 1 year ago
Running the following LPC code in JIT:
int test(object obj) { if (obj <- "/lib/Time") { return TRUE; } return FALSE; }
Causes the following error if obj is nil:
obj
nil
terminating with uncaught exception of type char const*
This doesn't happen outside of JIT, so testing this requires some shenanigans to ensure it's JIT compiled. Assuming the above LPC is in test.c:
test.c
compile test.c compile test.c code "test"->test(nil) code "test"->test(nil)
This is actually a bug in DGD, moving it there...
Should be fixed by 5117da4.
Oh, I probably should've thought to look there. ^^;
Seems fine now, thanks!
Running the following LPC code in JIT:
Causes the following error if
obj
isnil
:This doesn't happen outside of JIT, so testing this requires some shenanigans to ensure it's JIT compiled. Assuming the above LPC is in
test.c
: