1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-18 00:05:13 +00:00

Fix ev thread swallowing error in some case.

This commit is contained in:
Calvin Rose
2021-08-27 11:46:42 -05:00
parent 0ab96b8e47
commit ab740f92db
4 changed files with 33 additions and 11 deletions

View File

@@ -1520,6 +1520,7 @@ int janet_init(void) {
janet_vm.root_capacity = 0;
/* Scratch memory */
janet_vm.user = NULL;
janet_vm.scratch_mem = NULL;
janet_vm.scratch_len = 0;
janet_vm.scratch_cap = 0;
@@ -1579,6 +1580,7 @@ void janet_deinit(void) {
janet_vm.abstract_registry = NULL;
janet_vm.core_env = NULL;
janet_vm.top_dyns = NULL;
janet_vm.user = NULL;
janet_free(janet_vm.traversal_base);
janet_vm.fiber = NULL;
janet_vm.root_fiber = NULL;