There is a (regression?) bug where the finalizer was using the classDefinition instead of the objectDefinition which results in no structs (and also presumably classes) from ever being cleaned up.
This seems to be a regression because I originally added this code (because there used to be no finalizer), and I have old generated code that used objectDefinition correctly. I think things were lost in the rebase.
In Lib/javascript/jsc/javascriptcode.swg
$jsmangledname_classDefinition.finalize = $jsdtor;
should be:
$jsmangledname_objectDefinition.finalize = $jsdtor;
There is a (regression?) bug where the finalizer was using the classDefinition instead of the objectDefinition which results in no structs (and also presumably classes) from ever being cleaned up.
This seems to be a regression because I originally added this code (because there used to be no finalizer), and I have old generated code that used objectDefinition correctly. I think things were lost in the rebase.
In Lib/javascript/jsc/javascriptcode.swg $jsmangledname_classDefinition.finalize = $jsdtor;
should be: $jsmangledname_objectDefinition.finalize = $jsdtor;