Hacker News new | ask | show | jobs
by BlueGreenMagick 242 days ago
I don't think the control flow relies on GC.

The control flow stops because statements after `await new Promise(() => {});` will never run.

GC is only relied upon to not create a memory leak, but you could argue it's the same for all other objects.