Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

fix(rome_js_analyze): improve exception control flow handling #3761

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

leops
Copy link
Contributor

@leops leops commented Nov 16, 2022

Summary

Fixes #3654

This changes the analysis of exception control flow to stop at the first catch handler while visiting an exception branch instead of unwinding all the way to the function root.

Test Plan

I've added a new test case for check for regressions for the associated issue. I've also updated the JsTryFinallyStatement snapshot since the fix also improves the diagnostics emitted by noUnreachable in some cases.

@netlify
Copy link

netlify bot commented Nov 16, 2022

Deploy Preview for docs-rometools ready!

Name Link
🔨 Latest commit c91a03b
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/6374c5a663464b000896327e
😎 Deploy Preview https://deploy-preview-3761--docs-rometools.netlify.app/playground
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@leops leops merged commit 2a5c845 into main Nov 16, 2022
@leops leops deleted the fix/exception-control-flow branch November 16, 2022 13:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Bug with noUnreachable and finally block
2 participants