public override bool DeleteProperty(string Key, bool Throw) { for (JSEnvRec l = this.LexicalEnv; l != null; l = l.Parent) { if (l.HasBinding(Key)) { return(l.DeleteBinding(Key, Throw)); } } return(true); }
public bool HasBinding(string key) { for (JSEnvRec lex = this.LexicalEnv; lex != null; lex = lex.Parent) { if (lex.HasBinding(key)) { return(true); } } return(false); }