Closed Bug 1523885 Opened 6 years ago Closed 5 years ago

Stepping over an async function returning a promise doesn't work correctly

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Honza, Unassigned)

References

Details

This case shows stepping over an async function that returns a promise.

1. async function wait(n) {
2.   return new Promise(r => setTimeout(r, n));
3. }
4. 
5. async function foo3() {
6.   debugger;
7.   const p = wait(200);
8.   console.log("done");
9. }

STR:

  1. The user is paused at line 6
  2. The user steps over, execution is paused at line 7
  3. The user steps over, execution is paused at line 7 again => BUG
  4. The user steps over, execution is paused at line 8

Online example #3:
https://titanium-fiber.glitch.me/

Honza

Has STR: --- → yes
Priority: -- → P2
Whiteboard: [debugger-mvp]
Assignee: nobody → jimb
Whiteboard: [debugger-mvp]
Assignee: jimb → nobody
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.