We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e4ca8e commit 306c912Copy full SHA for 306c912
crates/oxc_linter/src/rules/eslint/no_unreachable.rs
@@ -73,7 +73,7 @@ impl Rule for NoUnreachable {
73
DfsEvent::Discover(node, _) => {
74
let mut incoming = graph.edges_directed(node, Direction::Incoming);
75
if incoming.any(|e| match e.weight() {
76
- EdgeType::NewFunction => true,
+ EdgeType::NewFunction | EdgeType::Finalize => true,
77
EdgeType::Jump
78
if cfg
79
.basic_block(e.source())
@@ -221,7 +221,16 @@ fn test() {
221
c();
222
}
223
d();
224
- ",
+ ",
225
+ "
226
+ try {
227
+ while (true) {
228
+ a();
229
+ }
230
+ } finally {
231
+ b();
232
233
234
];
235
236
let fail = vec![
0 commit comments