浏览代码

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;
+}