remove more Pausable stuff
authoradam <adam@megacz.com>
Sun, 16 Jan 2005 01:49:31 +0000 (01:49 +0000)
committeradam <adam@megacz.com>
Sun, 16 Jan 2005 01:49:31 +0000 (01:49 +0000)
darcs-hash:20050116014931-5007d-f19e67226ef3aa0cd7969f4ad9b514c366807e6e.gz

src/org/ibex/js/JS.java
src/org/ibex/js/JSArray.java
src/org/ibex/js/JSFunction.java

index e2fc5c8..e47785d 100644 (file)
@@ -9,7 +9,7 @@ import java.io.*;
 import java.util.*;
 
 /** The minimum set of functionality required for objects which are manipulated by JavaScript */
-public interface JS extends Pausable {
+public interface JS {
 
     /** Returns an enumeration of the keys in this object. */
     public JS.Enumeration keys() throws JSExn;
index 993e057..dd2aecd 100644 (file)
@@ -58,8 +58,6 @@ public class JSArray extends Basket.Array implements JS, Basket.CompareFunc {
     public String[] getFormalArgs() { return empty; }
     public String coerceToString() { return "array"; } // FIXME
 
-    public Object run(Object o) throws JSExn { return call(null, null); }
-    public void pause() throws NotPausableException { throw new NotPausableException(); }
     public JS call(JS method, JS[] args) throws JSExn {
         //#switch(JSU.str(method))
         case "pop": return size() == 0 ? null : (JS)remove(size() - 1);
index 681e03e..a14bdec 100644 (file)
@@ -3,9 +3,10 @@
 // You may not use this file except in compliance with the License.
 
 package org.ibex.js;
+import org.ibex.util.*;
 
 /** A JavaScript function, compiled into bytecode */
-class JSFunction extends JS.Immutable implements ByteCodes, Tokens {
+class JSFunction extends JS.Immutable implements ByteCodes, Tokens, Pausable {
     private static final JS[] emptyArgs = new JS[0];
 
     // Fields and Accessors ///////////////////////////////////////////////