Issue metadata
Sign in to add a comment
|
Doesn't break on exceptions with async/await
Reported by
gr...@superhuman.com,
Jun 20 2017
|
||||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Steps to reproduce the problem:
function throwError() {
return new Promise(resolve => {
setTimeout(resolve, 10)
}).then(() => {throw new Error('blah')})
}
function thisWorks() { return throwError() }
async function thisDoesnt() { await throwError() }
thisWorks()
thisDoesnt()
Run this with "Pause on exceptions" ticked, but not "Pause on caught exceptions"
What is the expected behavior?
It should break on the error twice, and print both to the console as "uncaught (in promise)".
What went wrong?
It only breaks on the first one. Both errors do get written to the console correctly though.
Did this work before? N/A
Chrome version: 58.0.3029.110 Channel: stable
OS Version: OS X 10.12.5
Flash Version:
It breaks on both errors if you tick "break on caught exceptions".
,
Jul 4 2017
@grant -- Thanks for posting the issue. Could you please elaborate the steps followed to reproduce this issue. And could you please provide screencast to reproduce the issue, so that it will be easy for us to triage this issue. Thanks in advance.
,
Jul 5 2017
,
Jul 16 2017
Here's a quick screencap of the issue: https://gyazo.com/9e9bbb446dc22d561b54a5d7736f26d6 The code I added above should be sufficient to reproduce, but let me know if there's anything else I can do to help. Thanks!
,
Oct 16 2017
,
Dec 4 2017
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by nyerramilli@chromium.org
, Jun 22 2017