Simn / genjvm

13 stars 1 forks source link

haxe.CallStack #41

Closed Simn closed 5 years ago

Simn commented 5 years ago

yeah...

Simn commented 5 years ago

I guess we have to remember the last exception for this. That's what genjava does as well. However, we would run into the same issue as on JS where we keep the reference around so it never gets GCed.

@nadako: Did we ever solve that for JS?

nadako commented 5 years ago

Nope, there's an issue about data flow analysis to nullify the reference in terminal expressions of the catch block.

Simn commented 5 years ago

This is good enough for now. If we ever implement a generic way to deal with this we can use it for the JVM target as well.