remove JS.hasKey(); it is extremely important that foo.bar
[org.ibex.js.git] / src / org / ibex / js / JSArray.java
index fc862d5..9124761 100644 (file)
@@ -59,12 +59,6 @@ public class JSArray extends Basket.Array implements JS, Basket.CompareFunc {
     public String[] getFormalArgs() { return empty; }
     public String coerceToString() { return "array"; } // FIXME
 
-    public boolean hasKey(JS key) {
-        if (key == null || !(key instanceof JSNumber.I)) return false;
-        int i = ((JSNumber.I)key).toInt();
-        return 0 <= i && i < size();
-    }
-
     public Object run(Object o) throws JSExn { return call(null); }
     public void pause() throws NotPausableException { throw new NotPausableException(); }
     public JS call(JS[] args) throws JSExn { throw new JSExn("can not call an array as a function"); }