ast-guard@2.0.0
·
47 commits
to main
since this release
ast-guard v2.0.0
📦 npm: ast-guard@2.0.0
Added
for/while/do-whileloops are now transformed with injected iteration counters that enforce the runtime__maxIterationslimit instead of being rejected outright.- Agentscript preset now allows the
__maxIterationsglobal and ships a newInfiniteLoopRulethat flags obvious infinite-loop syntax.
Changed
- Loop guards throw a string error when the iteration ceiling is exceeded, so host runtimes must expose
__maxIterationsfor transformed scripts to run.