+ static class JSArgs extends JS.Immutable {
+ private final JS[] args;
+ private final JS callee;
+
+ public JSArgs(JS[] args, JS callee) { this.args = args; this.callee = callee; }
+
+ public JS get(JS key) throws JSExn {
+ if(JSU.isInt(key)) return args[JSU.toInt(key)];
+ //#switch(JSU.toString(key))
+ case "callee": return callee;
+ case "length": return JSU.N(args.length);
+ //#end
+ return super.get(key);
+ }
+ }
+