mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-14 12:55:16 +08:00
An untyped delay converts before the timer call and waits in a hidden local, so the lowered call sits inside a seqExpr. The realTimer mark was applied to the value lowerTimerCall returned, which that wrapper hid, so an imported setTimeout or setInterval with an untyped delay emitted the mock-aware entry point and its callback ran on the mocked queue. timers-delay-warnings-mocked.ts schedules an imported setTimeout with an untyped delay while mock.timers is enabled and calls the callback once the script ends, after the tick; timer-delay-lowering.test.ts pins the realTimer mark on the call inside the seqExpr.