mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-09 23:03:15 +08:00
The process.emitWarning replacement and the stdin encoding, string data listener and stdio 'resize' support changed runtime functions every program with the dyn-async or events unit links (the shared warning paths, stdin delivery, the process stream object) and grew their thread-local state. That code now compiles only into new runtime-pack variants, SCR_WARNING_REPLACE of scr_async_dyn.c and SCR_STDIO_EXTENDED of scr_events.c, which the link selects when the program assigns process.emitWarning or reaches setEncoding, a string 'data' listener or 'resize'. The default objects are byte-identical to before, so other executables do not change. The development and sanitizer builds pass the same defines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>