Open XmiliaH opened 3 years ago
The same behavior can be seen for closure
.
Yay, really.
It turns out that we don't have to break backwards compatibility with proposed change. Because it's already broken (between JIT and VM) :smoking:
Sorry my bad. I think my original LLVM backend matched the interpreter semantics.
For now I pushed some changes to improve consistency between JIT & VM.
Hi @XmiliaH if you are able to check that the behavior is consistent now please let me know.
As noted in https://github.com/dibyendumajumdar/ravi/issues/223#issuecomment-845122991 there is a discrepancy between the VM and JIT for the
OP_RAVI_TOSTRING
. The VM allowsnil
, however, the JIT doesn't. Following code produces an error after the function is compiled: