mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
A generator frame owns its parameters until its final exit, across every suspension, so an unchanged, unboxed reference parameter is a stable owner that reads may borrow (CallLifetimes.generatorParameters). Calling a callback parameter on every step no longer retains and releases it. Generator declarations entered only through direct (spawn) calls are now constant-callback consumers: when every call passes the same function, the body enters it through the guarded direct path, which inlines it and drops the dynamic-`this` bracket for callees that cannot observe it.