ソースを参照

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

Dan Korostelev 10 年 前
コミット
74063437f5
1 ファイル変更7 行追加0 行削除
  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;
+}