9.11 AddToKeptObjects ( object )

The abstract operation AddToKeptObjects takes argument object (an Object). It performs the following steps when called:

  1. Let agentRecord be the surrounding agent's Agent Record.
  2. Append object to agentRecord.[[KeptAlive]].
Note
When the abstract operation AddToKeptObjects is called with a target object reference, it adds the target to a list that will point strongly at the target until ClearKeptObjects is called.