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"); }