X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FJSArray.java;fp=src%2Forg%2Fibex%2Fjs%2FJSArray.java;h=9124761a38390c676dcec9860289cd845379f5a9;hb=299919348f8c5693bb46b299570a0c518998a70f;hp=fc862d5fbff2f84c743b39c7840fea71bc421279;hpb=3adff821b812865f19a2c3d0214ca5d3deca3e06;p=org.ibex.js.git diff --git a/src/org/ibex/js/JSArray.java b/src/org/ibex/js/JSArray.java index fc862d5..9124761 100644 --- a/src/org/ibex/js/JSArray.java +++ b/src/org/ibex/js/JSArray.java @@ -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"); }