Stack overflow on deep recursion: JavaScript target lacks tail-call optimization
Context Gleam's JavaScript compilation target enables near-zero idle cost on serverless platforms such as Cloudflare Workers and AWS Lambda, with cold starts under 50 ms and minimal bundle size. For low-traffic workloads this deployment model is cost-effective, but the runtime behavior diverges from the BEAM target in a critical way. Constraint The JavaScrip