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)
DevTools
Debugger
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:
- The user is paused at line 6
- The user steps over, execution is paused at line 7
- The user steps over, execution is paused at line 7 again => BUG
- The user steps over, execution is paused at line 8
Online example #3:
https://titanium-fiber.glitch.me/
Honza
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
No longer blocks: dbg-async-step-out
Reporter | ||
Updated•6 years ago
|
Blocks: dbg-step-over
Updated•6 years ago
|
Whiteboard: [debugger-mvp]
Updated•5 years ago
|
Assignee: nobody → jimb
Updated•5 years ago
|
Whiteboard: [debugger-mvp]
Updated•5 years ago
|
Assignee: jimb → nobody
Comment 1•5 years ago
|
||
This works for me
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.
Description
•