A function body's assignment was left out of the names other code may
change when any enclosing body had declared the name with var. A nested
function such as swap() { d = app.activeDocument; } called before
d.saveAs(f) then left d trusted as the script's own literal, and the
write went unreported. Only a name the innermost body declared now counts
as that body's own; plain, compound, increment and for-in assignments to
an outer body's variable all keep the write reported.