New issue
Advanced search Search tips

Issue 735205 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 792626
Owner:
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



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".
 
Labels: Needs-Milestone
Cc: pnangunoori@chromium.org
Labels: Needs-Feedback
@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.
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Unconfirmed)
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!
Owner: kozy@chromium.org

Comment 6 by kozy@chromium.org, Dec 4 2017

Mergedinto: 779232
Status: Duplicate (was: Assigned)
Mergedinto: -779232 792626

Sign in to add a comment