Skip to content

Mark all APIs that can throw JS errors with @raises #71

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

Closed
zth opened this issue Feb 24, 2023 · 0 comments · Fixed by rescript-lang/rescript#7328
Closed

Mark all APIs that can throw JS errors with @raises #71

zth opened this issue Feb 24, 2023 · 0 comments · Fixed by rescript-lang/rescript#7328
Assignees

Comments

@zth
Copy link
Collaborator

zth commented Feb 24, 2023

Reanalyze can help us ensure we handle potential exceptions if it knows about what external APIs can throw what. https://rescript-lang.org/syntax-lookup#raises-decorator

Go through the APIs we've bound to and ensure they're all marked with @raises where appropriate.

@tsnobip tsnobip self-assigned this Mar 7, 2025
tsnobip added a commit to rescript-lang/rescript that referenced this issue Mar 11, 2025
tsnobip added a commit to rescript-lang/rescript that referenced this issue Mar 11, 2025
tsnobip added a commit to rescript-lang/rescript that referenced this issue Mar 11, 2025
fhammerschmidt pushed a commit to rescript-lang/rescript that referenced this issue Apr 4, 2025
* add tests for exception tracking on externals

* add docstring tests to Stdlib.BigInt

* update reanalyze exception tracking of stdlib

Fixes rescript-lang/rescript-core#71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants