Skip to content

Commit c11b679

Browse files
authored
[std/hl] move some position for customStack and set_stack (#12217)
1 parent 88bb6af commit c11b679

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

std/hl/_std/haxe/Exception.hx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Exception {
1313
@:noCompletion @:ifFeature("haxe.Exception.get_stack") var __skipStack:Int = 0;
1414
@:noCompletion var __nativeException:Any;
1515
@:noCompletion var __previousException:Null<Exception>;
16+
@:noCompletion var __customStack:Null<String>;
1617

1718
static function caught(value:Any):Exception {
1819
if(Std.isOfType(value, Exception)) {
@@ -91,10 +92,7 @@ class Exception {
9192
}
9293

9394
function set_stack(stack:CallStack) {
94-
__exceptionStack = stack;
9595
__customStack = CallStack.toString(stack);
96-
return stack;
96+
return __exceptionStack = stack;
9797
}
98-
99-
@:noCompletion var __customStack:Null<String>;
100-
}
98+
}

0 commit comments

Comments
 (0)