Open Bug 1483669 Opened 3 years ago Updated 9 months ago

Debugger: On forced return from a non-generator async function, close the generator


(Core :: JavaScript Engine, enhancement, P3)





(Reporter: jorendorff, Unassigned)


(Blocks 1 open bug)


Spun off from bug 1475417, which ensures that we close generators on forced return from a generator, including async generators; but not async functions.

Async functions are also implemented using a generator. But the generator is not exposed to user script. I'm pretty sure the right thing is to close in the async function case too. It isn't user-observable, since that object isn't user-observable; but it's more consistent.
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.