おそらく、このhttps://jakearchibald.com/2014/es7-async-functions/やこのhttp://pouchdb.com/2015/03/05/taming-async/await
のような記事から、エラーをキャッチする方法がどのように機能するかを誤解しましたthe-async-beast-with-es7.htmlですが、私のブロックは 400/500 をキャッチしていません。catch
async () => {
let response
try {
let response = await fetch('not-a-real-url')
}
catch (err) {
// not jumping in here.
console.log(err)
}
}()