snappy icon indicating copy to clipboard operation
snappy copied to clipboard

as async api, Promise catch should catch all the exception

Open xqin opened this issue 2 years ago • 0 comments

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 [email protected]

xqin avatar Oct 24 '22 03:10 xqin