浏览代码

[hl] patch stack trace tests until #10926 is handled

k 2 年之前
父节点
当前提交
7de58981cc
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      tests/unit/src/unit/TestExceptions.hx

+ 4 - 0
tests/unit/src/unit/TestExceptions.hx

@@ -242,6 +242,10 @@ class TestExceptions extends Test {
 			var expected = null;
 			var lineShift = 0;
 			for(s in stacks) {
+				// TODO: fix hl vs other targets difference with callstacks
+				// See https://github.com/HaxeFoundation/haxe/issues/10926
+				#if hl @:privateAccess s.asArray().shift(); #end
+
 				if(expected == null) {
 					expected = stackItemData(s[0]);
 				} else {