Open Bug 1483669 Opened 6 years ago Updated 2 years ago

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

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: jorendorff, Unassigned)

References

(Blocks 1 open bug)

Details

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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.