Open Bug 1617066 Opened 4 years ago Updated 2 years ago

Support calling generators in eager evaluation

Categories

(DevTools :: Console, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: Oriol, Unassigned)

References

(Blocks 1 open bug)

Details

Type this in the console:

(function*(){})()

Expected: eager evaluation shows Generator { }

Actual: no eager evaluation.

It doesn't seem to have any side-effects, so it should work.

Similar to https://bugzilla.mozilla.org/show_bug.cgi?id=1617073, this is because of various opcodes that perform mutating operations. There is also https://searchfox.org/mozilla-central/rev/5a10be606f2d76ef22f1f44565749490de991d35/js/src/debugger/Script.cpp#1493 which is concerned with microtasks, but it's not clear to me what that's actually meant to address. In the case of your code, it doesn't seem like it should apply to idk.

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