function assertDoesNotRetainReference(/** !Object */ object, /** * */ value) {
  const path = searchForReference(object, value);
  if (path) {
    asserts.raiseException(
        `expected there to be no retention path, found the value @ object['${
            path.join('\'][\'')}']`);
  }
}
Asserts that the given object has no transitive reference on the given
value.

This may be useful when writing tests to confirm that certain values aren't
'leaked'.