mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-01 07:33:12 +08:00
An island signal registration is now tagged with the raw listener it installed, so a once registration and an on registration of one function dispatch through their own listeners instead of both resolving to the plain function, and the once registration no longer fires indefinitely. The removal handler forgets the entry whose raw listener is no longer on process, so a once wrapper that removes itself leaves its runtime registration behind no longer; duplicate registrations of one function share a raw listener, and the most recent of those is removed. refresh() of a timer armed before Node loads re-arms at now + the delay the timer was created with. Its Node handle was created with the remaining delay at handoff and a due timer had no handle at all, so the handle is replaced rather than refreshed. The signal program registers one function once and on; a new timer program refreshes a timer most of whose delay passed before Node loaded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>