Ver código fonte

add test for haxe.CallStack.exceptionStack inside a catch block

Dan Korostelev 10 anos atrás
pai
commit
74063437f5
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7 0
      tests/unit/src/unitstd/haxe/CallStack.unit.hx

+ 7 - 0
tests/unit/src/unitstd/haxe/CallStack.unit.hx

@@ -3,3 +3,10 @@ Std.is(stack, Array) == true;
 
 var stack = haxe.CallStack.exceptionStack();
 Std.is(stack, Array) == true;
+
+try {
+    throw false;
+} catch (_:Dynamic) {
+    var stack = haxe.CallStack.exceptionStack();
+    Std.is(stack, Array) == true;
+}