false positive: no-unreachable
inside catch
block when throwing value created outside scope of try
#1303
Labels
bug
Something isn't working
Lint Name
no-unreachable
Code Snippet
lint_fail_test.ts
:Expected Result
Running
deno lint lint_fail_test.ts
exits with status code0
Actual Result
Exits with status code
1
(see additional info below)Additional Info
For comparison, here's the same test module except that the declaration of
fooError
is inside thetry
block:lint_pass_test.ts
:The module
lint_pass_test.ts
passes linting, and both test modules complete successfully using Deno's test runner. Here is terminal output for both modules:This was discovered in a CI failure here:
…and might be a regression. Ref:
no-unreachable
unexpectedly flags statements inside catch clause #716Version
The text was updated successfully, but these errors were encountered: