mirror of
https://github.com/janet-lang/janet
synced 2024-12-24 23:40:27 +00:00
Fix issue with throwing uncaught errors.
This commit is contained in:
parent
33d09f98b1
commit
08319e62cb
4
vm.c
4
vm.c
@ -56,8 +56,10 @@ int gst_start(Gst *vm) {
|
||||
frame.size * sizeof(GstValue));
|
||||
}
|
||||
stack -= frame.prevSize + GST_FRAME_SIZE;
|
||||
if (stack <= thread.data)
|
||||
if (stack <= thread.data) {
|
||||
thread.count = 0;
|
||||
break;
|
||||
}
|
||||
frame = *((GstStackFrame *)(stack - GST_FRAME_SIZE));
|
||||
}
|
||||
if (thread.count < GST_FRAME_SIZE)
|
||||
|
Loading…
Reference in New Issue
Block a user