AOT JS/TS can't support eval — and one developer says rip eval out for AI-age safety

cramforce · x · 2026-10-19

Responding to Bun creator Jarred Sumner's take that fully ecosystem-compatible AOT JS/TS would be the most exciting thing since Node, engineer Malte Ubl explains the technical limits: pure AOT can get scriptc near 100% compatibility except for eval and computed-path requires (which is eval in disguise). He argues eval should be ripped out of JS/TS entirely because in the age of AI it's a dangerous RCE vector — a single uncontrolled .constructor read can compromise an app, and bun --aot would need 100MB of dependencies to support it; legitimate use cases should opt in by shipping QuickJS instead. The right goal, he says, is full ecosystem compatibility with AI rewriting the minimal set of libraries that can't be AOT-compiled.

Original post →

More from coding & agent

coding & agent channel →