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