소스 검색

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