removeLocalValue method
Removes name from this environment's local _values map.
Used by D4rtRunner.resetScriptDeclarations (interpreter_unfixable.md
§U28) to evict script-declared entries between executeBundle calls
while preserving the bridge maps. Returns whether an entry was
removed. Does NOT walk the enclosing scope chain.
Note: this only mutates _values. _bridgedClasses, _bridgedEnums,
and _bridgedClassesLookupByType are left intact — bridge
registrations survive a reset by design.
Implementation
bool removeLocalValue(String name) {
if (!_values.containsKey(name)) return false;
_values.remove(name);
return true;
}