We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd07122 + 9bafdda commit 415f7b2Copy full SHA for 415f7b2
src/vm/wren_value.c
@@ -1089,6 +1089,9 @@ static void blackenFn(WrenVM* vm, ObjFn* fn)
1089
// Mark the constants.
1090
wrenGrayBuffer(vm, &fn->constants);
1091
1092
+ // Mark the module it belongs to, in case it's been unloaded.
1093
+ wrenGrayObj(vm, fn->module);
1094
+
1095
// Keep track of how much memory is still in use.
1096
vm->bytesAllocated += sizeof(ObjFn);
1097
vm->bytesAllocated += sizeof(uint8_t) * fn->code.capacity;
0 commit comments