How are unhandled promise rejections reported

I know that I can add an event listener to catch 'unhandledrejection' but I was wondering if these unhandled promise rejections are supposed to show up in the log/logpush? I do not see anything. A simple test case is
export default {
async fetch(request) {
Promise.reject('Where can I see this?');
return new Response('OK');
}
};
export default {
async fetch(request) {
Promise.reject('Where can I see this?');
return new Response('OK');
}
};
0 Replies
No replies yetBe the first to reply to this messageJoin