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

as async api, Promise catch should catch all the exception #102

Open
xqin opened this issue Oct 24, 2022 · 0 comments
Open

as async api, Promise catch should catch all the exception #102

xqin opened this issue Oct 24, 2022 · 0 comments

Comments

@xqin
Copy link

xqin commented Oct 24, 2022

const { compress } = require('snappy')


try {
  compress(this.nothing).catch((e) => {
    console.log('excpetion should be here:', e)
  })
} catch (e) {
  console.log('unexpect excpetion:', e)
}

test on snappy@7.2.1

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