New issue
Advanced search Search tips

Issue 792626 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Fails to break on uncaught errors in nested async calls (works only on top level async call)

Reported by yaa...@gmail.com, Dec 6 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Steps to reproduce the problem:
1. Notice that the debugger correctly breaks on this uncaught exception in this code pen: https://codepen.io/yaaang/pen/pdmWvp

Code here:

function sleep() {
  return new Promise(resolve => setTimeout(resolve, 1));
}
async function thrower() {
  await sleep();
  throw '!';
}
thrower();

2. Try running this one now: https://codepen.io/yaaang/pen/OOYxyb

Code:

...
(async function() {
  await thrower();
})();

What is the expected behavior?
Debugger should break. It does so for outermost async call only. Firefox does support this.

What went wrong?
Debugger did not break.

Did this work before? N/A 

Chrome version: 62.0.3202.94  Channel: n/a
OS Version: OS X 10.10.5
Flash Version: 

This would be a major boon to debugging productivity.
 
Owner: kozy@chromium.org
Status: Assigned (was: Unconfirmed)
Cc: caitp@chromium.org gsat...@chromium.org
caitp@ can you please take a look? Thanks!

Comment 3 by caitp@chromium.org, Jan 12 2018

I won’t be able to look at this until at least Feb.
Cc: neis@chromium.org
Georg, is this something you have an idea about?

Comment 5 by neis@chromium.org, Jan 26 2018

Cc: yangguo@chromium.org
Not at all.
Cc: kozy@chromium.org pnangunoori@chromium.org
 Issue 735205  has been merged into this issue.

Sign in to add a comment