Skip to content
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

no-multiple-resolved wrongly reports reject in try/catch block #443

Open
burtek opened this issue May 24, 2023 · 0 comments
Open

no-multiple-resolved wrongly reports reject in try/catch block #443

burtek opened this issue May 24, 2023 · 0 comments

Comments

@burtek
Copy link

burtek commented May 24, 2023

From #382, which I think wasn't fully fixed

try {
    resolve(someThrowingFn())
} catch (error) {
    reject(error)
}

still errors for me. It doesn't error if I do this:

try {
    const data = someThrowingFn()
    resolve(data)
} catch (error) {
    reject(error)
}

But those two are identical and should behave same way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant