Open Bug 1625825 Opened 5 years ago Updated 5 years ago

"Pause on exceptions" pauses at every `await` of a rejected call chain

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: loganfsmyth, Unassigned)

References

(Blocks 1 open bug)

Details

This is basically the async version of https://bugzilla.mozilla.org/show_bug.cgi?id=1092922

Steps:

  1. Run this snippet in the console with "Pause on caught exceptions" enabled:
async function one() {
  await Promise.resolve();
  throw new Error();
}
async function two() {
  await one();
}
two()
  1. Debugger pauses at throw
  2. Press "resume"

Expected:
Evaluation should continue without any more pauses

Actual:
Debugger pauses again at await one();

The priority flag is not set for this bug.
:jlast, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jlaster)
Flags: needinfo?(jlaster)

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.