X-Git-Url: http://git.megacz.com/?p=org.ibex.js.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FJSReflection.java;fp=src%2Forg%2Fibex%2Fjs%2FJSReflection.java;h=2f163e7f2d1a7e42f63a32f80ecd5ee5d6fa3ada;hp=4712d0829616ac93292b68dda0de78710cf42994;hb=f3ad8b6cba43f3c5364dc2cd9f1d050c1f48f167;hpb=f63da7aeac2f942be41aefde91002d14117a8573 diff --git a/src/org/ibex/js/JSReflection.java b/src/org/ibex/js/JSReflection.java index 4712d08..2f163e7 100644 --- a/src/org/ibex/js/JSReflection.java +++ b/src/org/ibex/js/JSReflection.java @@ -17,7 +17,7 @@ public class JSReflection extends JS.Immutable { 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()); } @@ -36,8 +36,7 @@ public class JSReflection extends JS.Immutable { 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);