Sfoglia il codice sorgente

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

Dan Korostelev 10 anni fa
parent
commit
74063437f5
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  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;
+}