You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting with 4.3.0, getting the stack of an exception via Exception.stack or Exception.details() seems to not contain the throwing line infos anymore; however, ClassStack.exceptionStack() is still the same.
This is the output in 4.3.0 and 4.3.1 (tested in neko, hashlink, hxcpp):
Test.hx:9:
stack:
Called from Test.hx line 16
Called from Test.hx line 7
Test.hx:10:
CallStack.exceptionStack:
Called from Test.hx line 22
Called from Test.hx line 16
Called from Test.hx line 7
Test.hx:11:
details: Exception: a is null
Called from Test.hx line 16
Called from Test.hx line 7
Although in 4.2.5:
Test.hx:9:
stack:
Called from Test.hx line 21
Called from Test.hx line 16
Called from Test.hx line 7
Called from ? line 1
Test.hx:10:
CallStack.exceptionStack:
Called from Test.hx line 21
Called from Test.hx line 16
Called from Test.hx line 7
Test.hx:11:
details: Exception: a is null
Called from Test.hx line 21
Called from Test.hx line 16
Called from Test.hx line 7
Called from ? line 1
…11249)
* [tests] add test for #11247
* Fix for #11247
* [hl] restore callstack fix
* [tests] cpp doesn't like native exceptions in those tests either
* [tests] only run new test for eval/hl/neko
* Fix#11265
* [tests] don't compile test on target that won't run it
…11249)
* [tests] add test for #11247
* Fix for #11247
* [hl] restore callstack fix
* [tests] cpp doesn't like native exceptions in those tests either
* [tests] only run new test for eval/hl/neko
* Fix#11265
* [tests] don't compile test on target that won't run it
Starting with 4.3.0, getting the stack of an exception via
Exception.stack
orException.details()
seems to not contain the throwing line infos anymore; however,ClassStack.exceptionStack()
is still the same.https://try.haxe.org/#6bF30094
The actual exception is thrown on line 22.
This is the output in 4.3.0 and 4.3.1 (tested in neko, hashlink, hxcpp):
Although in 4.2.5:
I made other experiments:
Then only
CallStack.exceptionStack
contains the throwing line, even in Haxe 4.2.x.Is this a bug, or are we supposed to get the throwing line in some other way?
The text was updated successfully, but these errors were encountered: