-
Notifications
You must be signed in to change notification settings - Fork 4
[SPEED-3094] Support not having a Return or a Throw if an underlying function throws and is not caught
#164
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
52c4434
Add tests
Fladolcetta 3f20252
Fix issue
Fladolcetta 4ff6492
Test only returns not throws
Fladolcetta f9231f2
Add tests and additional coverage
Fladolcetta aa4567c
Clean
Fladolcetta 027c070
Fix lint failures
Fladolcetta 1a26e1c
Fix guardrail errors
Fladolcetta e1460f7
Refactor
Fladolcetta dde38ec
Get rid of junk tests
Fladolcetta c6fa9db
Re-arrange
Fladolcetta 162953f
Refactor
Fladolcetta fb6b6ac
More refactor
Fladolcetta 53f3a4b
Undo moves
Fladolcetta aa31793
Delete last dead function
Fladolcetta 5b340ac
Merge branch 'master' into flad/handleFunctionsThatThrow
Fladolcetta d6388d0
Merge branch 'master' into flad/handleFunctionsThatThrow
Fladolcetta aff3087
Add test from external file
Fladolcetta b7acecb
Add mechanism to catch throws for Real
Fladolcetta 26e83c6
Merge branch 'master' into flad/handleFunctionsThatThrow
Fladolcetta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 see what we're doing. We're trying to grab the body of the function that is being called in order to look up whether is contains a throw statement. That's going to work if the function is in the same file, but if it is a function in a different file then it won't be able to get the method body the way that we do here. There is a way to grab the file contents and parse it, but it is a pretty big performance hit. I have a branch where I do some work around declared throws where we don't have to have the method body handy to know if a function might throw. We don't have anything for a method that ALWAYS throws, which I think is what we're looking for here.