Added very basic implementation. Here's some code to play with:
import haxe.CallStack;
class Main
{
static function main()
{
f();
}
static function f()
{
var m = new Main();
function z() m.a();
z();
}
function new() {}
function a()
{
trace(CallStack.toString(CallStack.callStack()));
try
{
lol();
}
catch (e:Dynamic)
{
haha();
}
}
function lol() throw "fu";
function haha() trace(CallStack.toString(CallStack.exceptionStack()));
}
Added very basic implementation. Here's some code to play with: