public int hashCode() { return graftee.hashCode(); }
public Object get(Object key) { return replaced_key.equals(key) ? replaced_val : graftee.get(key); }
public void put(Object key, Object val) { graftee.put(key, val); }
- public void call(Object method, JSArray args) {
+ public Object call(Object method, JSArray args) {
if (replaced_key.equals(method)) return ((JSCallable)replaced_val).call(null, args);
- else if (graftee instanceof JSCallable) return graftee.call(method, args);
+ else if (graftee instanceof JSCallable) return ((JSCallable)graftee).call(method, args);
else throw new JS.Exn("cannot call this value");
}
public Number coerceToNumber() { return graftee.coerceToNumber(); }