Explorar o código

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

k %!s(int64=2) %!d(string=hai) anos
pai
achega
7de58981cc
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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 {