Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fable library: TimeSpan.FromSeconds and .NET9 #3985

Open
zelenij opened this issue Dec 21, 2024 · 1 comment
Open

Fable library: TimeSpan.FromSeconds and .NET9 #3985

zelenij opened this issue Dec 21, 2024 · 1 comment
Assignees

Comments

@zelenij
Copy link

zelenij commented Dec 21, 2024

Description

.NET9 added a new overload for the TimeSpan.FromSeconds which expects int64. This overload is missing from the library implementation. However, fable client code compilation doesn't fail. However, during runtime this message is generated by JS:

TypeError: can't convert BigInt to number

Repro code

TimeSpan.FromSeconds 1L

Expected and actual results

Expected: execute correctly

Actual: a JS exception is thrown

Related information

  • Fable version: 4.24.0
  • Operating system: MacOs, Linux
@MangelMaxime
Copy link
Member

After lookin into this issue, it seems like they added a bunch of new overload, working on a fix for them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants