Skip to content

Commit ac432a7

Browse files
authored
[TS] Expose optional stack property on Exception (#4381)
1 parent 2033315 commit ac432a7

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/Fable.Cli/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12+
* [TS] Expose optional `stack` property on `Exception` (by @MangelMaxime)
1213
* [Python] Fix `nonlocal`/`global` declarations generated inside `match/case` bodies causing `SyntaxError` (by @dbrattli)
1314
* [Python] Fix exception variable captured in deferred closures causing `NameError` (PEP 3110 scoping) (by @dbrattli)
1415

src/fable-library-ts/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
### Fixed
11+
12+
* [TS] Expose optional `stack` property on `Exception` (by @MangelMaxime)
13+
1014
## 2.0.0-rc.2 - 2026-03-03
1115

1216
### Fixed

src/fable-library-ts/Util.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export interface ICollection<T> extends IEnumerable<T> {
7979
// Exception is intentionally not derived from Error, for performance reasons (see #2160)
8080
export class Exception {
8181
public message: string;
82+
public stack?: string;
8283

8384
constructor(msg?: string) {
8485
this.message = msg ?? "";

0 commit comments

Comments
 (0)