Files
sausage/host/cred-script/vendor/rquickjs-sys/quickjs/tests/bug39/2.js
T

7 lines
172 B
JavaScript

/*---
flags: [qjs:track-promise-rejections]
---*/
const error = await Promise.resolve().then(() => Promise.reject('reject')).catch(e => e)
print('Got this error:', error)