We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Exception.stack
1 parent 4314e42 commit 5fa9789Copy full SHA for 5fa9789
std/cxx/_std/haxe/Exception.hx
@@ -10,7 +10,7 @@ class Exception extends cxx.std.Exception {
10
return _message;
11
}
12
13
- public var stack(get, never): CallStack;
+ public var stack(get, #if haxe5 set #else never #end): CallStack;
14
private function get_stack(): CallStack {
15
#if cxx_callstack
16
return _stack;
@@ -19,6 +19,16 @@ class Exception extends cxx.std.Exception {
19
return [];
20
#end
21
22
+ #if haxe5
23
+ private function set_stack(stack: CallStack): CallStack {
24
+ #if cxx_callstack
25
+ return _stack = stack;
26
+ #else
27
+ NativeStackTrace.err();
28
+ return [];
29
+ #end
30
+ }
31
32
33
public var previous(get, never): Null<Exception>;
34
private function get_previous(): Null<Exception> {
0 commit comments