-
Notifications
You must be signed in to change notification settings - Fork 469
Rename functions ending with Exn
to OrThrow
#7518
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
Conversation
Let me know what you think of the change |
Next step is |
@DZakh analysis tests are failing, I think you need to make some adaptation in analysis for the new function names. |
Hm, messed up |
|
||
Exception Analysis | ||
StdlibTest.res:11:5-23 | ||
bigIntFromStringExn raises nothing and is annotated with redundant @raises(JsExn) | ||
|
||
Exception Analysis | ||
StdlibTest.res:14:5-16 | ||
jsonParseExn raises nothing and is annotated with redundant @raises(JsExn) | ||
|
||
Analysis reported 24 issues (Exception Analysis:24) | ||
Analysis reported 26 issues (Exception Analysis:26) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why it changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DZakh I think you need to adapt this:
rescript/analysis/reanalyze/src/ExnLib.ml
Line 53 in 352fa02
let stdlibBigInt = [("fromStringExn", [jsExn])] in |
rescript
@rescript/darwin-arm64
@rescript/darwin-x64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/win32-x64
commit: |
@cknitt Should be fixed now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
No description provided.