Main.hx 293 B

1234567891011121314151617
  1. class Main {
  2. static function main() {
  3. try {
  4. test();
  5. }
  6. catch (e:Dynamic) {
  7. var stack = haxe.CallStack.exceptionStack();
  8. if(stack.length == 0) {
  9. throw 'haxe.CallStack.exceptionStack() returned empty array';
  10. }
  11. }
  12. }
  13. static public function test() {
  14. throw 'sdffsd';
  15. }
  16. }