remove JS.call(JS[]), JS.getInputStream()
[org.ibex.core.git] / src / org / ibex / core / Stream.java
index 247540a..c3f9ca0 100644 (file)
@@ -25,7 +25,6 @@ public abstract class Stream extends JS.Obj implements JS.Cloneable {
     public static class NotCacheableException extends Exception { }
 
     // streams are "sealed" by default to prevent accidental object leakage
-    public void put(Object key, Object val) { }
     private Cache getCache = new Cache(100, true);
     protected JS _get(JS key) throws JSExn { return null; }
     public final JS get(JS key) throws JSExn {
@@ -146,7 +145,7 @@ public abstract class Stream extends JS.Obj implements JS.Cloneable {
                                                 ((KnownLength.KnownLengthInputStream)is).getLength() : 0;
                                     callargs[0] = JSU.N(bytesDownloaded);
                                     callargs[1] = JSU.N(len);
-                                    callback.call(callargs);
+                                    callback.call(null, callargs);
                                 } finally { callargs[0] = callargs[1] = null; }
                                 return null;
                         } });