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

8 lines
196 B
JavaScript

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