Exemple #1
0
 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);
 }
Exemple #2
0
 public bool HasBinding(string key)
 {
     for (JSEnvRec lex = this.LexicalEnv; lex != null; lex = lex.Parent)
     {
         if (lex.HasBinding(key))
         {
             return(true);
         }
     }
     return(false);
 }