Closed xgouchet closed 1 year ago
This also upgrades the Brighterscript dependency to 0.59.0
to use the isThrowStatement
method.
Seems like some tests are failing in CI with the 0.59.0 upgrade, I'll fix those asap 👍
Thanks, the return
tracking was implemented before throw
was introduced!
Can you check if it fixes #68
Can you check if it fixes #68
No it doesn't but I'll add that to my PR
Code looks good, but needs testing at scale.
I can test this on our app today.
Sorry for the delay. I finally got around to testing this, and it looks like it works well against our larger project! The only change I would suggest is bumping the peerDependency
value up since this will fail for older brighterscript versions.
Given a function with
throw
statements in some branches, there is a false positive that considers those branches as invalid. Athrow
can be a valid exit strategy for a function when "something truly terrible happens".