if (o instanceof Number) return JSU.N((Number)o);
if (o instanceof JS) return (JS)o;
if (o instanceof Object[]) {
- // FIXME: get element type here
+ throw new JSExn("Reflection onto Object[] not supported yet");
}
throw new JSExn("Reflection object tried to return a " + o.getClass().getName());
}
public JS get(JS key) throws JSExn { return wrap(arr[JSU.toInt(key)]); }
}
- // FIXME public static class Hash { }
- // FIXME public Enumeration keys() throws JSExn { }
+ public Enumeration keys() throws JSExn { throw new JSExn("JSReflection.keys() not supported yet"); }
public JS get(JS key) throws JSExn {
String k = JSU.toString(key);