using Jint.Native; namespace Jint; /// /// https://tc39.es/ecma262/#sec-agents , still a work in progress, mostly placeholder /// internal sealed class Agent { private readonly List _keptAlive = new(); public void AddToKeptObjects(JsValue target) { _keptAlive.Add(target); } public void ClearKeptObjects() { _keptAlive.Clear(); } }