1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 00:10:27 +00:00

Fix issue with throwing uncaught errors.

This commit is contained in:
Calvin Rose 2017-02-26 22:23:08 -05:00
parent 33d09f98b1
commit 08319e62cb

4
vm.c
View File

@ -56,8 +56,10 @@ int gst_start(Gst *vm) {
frame.size * sizeof(GstValue)); frame.size * sizeof(GstValue));
} }
stack -= frame.prevSize + GST_FRAME_SIZE; stack -= frame.prevSize + GST_FRAME_SIZE;
if (stack <= thread.data) if (stack <= thread.data) {
thread.count = 0;
break; break;
}
frame = *((GstStackFrame *)(stack - GST_FRAME_SIZE)); frame = *((GstStackFrame *)(stack - GST_FRAME_SIZE));
} }
if (thread.count < GST_FRAME_SIZE) if (thread.count < GST_FRAME_SIZE)