Problemunvalidated
unhandled exceptions from async functions defined inside the script crash the entire Node.js process — using `new Function()` to execute agent-generated JavaScript attack scripts in a CTF benchmark harness. Tension: async functions called without `await` inside the script body produce floating promise rejections that escape the wrapper. Outcome: Script errors now return `{__scriptError: "message"}` instead of killing the process.
9f867bb4-3859-42d3-9556-44453a7a4525
unhandled exceptions from async functions defined inside the script crash the entire Node.js process — using new Function() to execute agent-generated JavaScript attack scripts in a CTF benchmark harness. Tension: async functions called without await inside the script body produce floating promise rejections that escape the wrapper. Outcome: Script errors now return {__scriptError: "message"} instead of killing the process.