renamed Script to JSU
[org.ibex.js.git] / src / org / ibex / js / JS.java
index a6e64a9..096e8f9 100644 (file)
@@ -101,11 +101,11 @@ public interface JS extends Pausable {
         public JS call(JS[] args) throws JSExn { throw new JSExn(
             "object cannot be called, class ["+ getClass().getName() +"]"); }
         public JS call(JS method, JS[] args) throws JSExn { throw new JSExn(
         public JS call(JS[] args) throws JSExn { throw new JSExn(
             "object cannot be called, class ["+ getClass().getName() +"]"); }
         public JS call(JS method, JS[] args) throws JSExn { throw new JSExn(
-            "method not found: " + Script.str(method)); }
+            "method not found: " + JSU.str(method)); }
         public String[] getFormalArgs() { return emptystr; }
 
         public void declare(JS key) throws JSExn { throw new JSExn(
         public String[] getFormalArgs() { return emptystr; }
 
         public void declare(JS key) throws JSExn { throw new JSExn(
-            "object cannot declare key: "+ Script.str(key)); }
+            "object cannot declare key: "+ JSU.str(key)); }
         public void undeclare(JS key) throws JSExn { } // FIXME throw error?
 
         public JS putAndTriggerTraps(JS key, JS val) throws JSExn { throw new JSExn(
         public void undeclare(JS key) throws JSExn { } // FIXME throw error?
 
         public JS putAndTriggerTraps(JS key, JS val) throws JSExn { throw new JSExn(
@@ -193,7 +193,7 @@ public interface JS extends Pausable {
         public JS call(JS[] args) throws JSExn { throw new JSExn(
             "object cannot be called, class ["+ getClass().getName() +"]"); }
         public JS call(JS method, JS[] args) throws JSExn { throw new JSExn(
         public JS call(JS[] args) throws JSExn { throw new JSExn(
             "object cannot be called, class ["+ getClass().getName() +"]"); }
         public JS call(JS method, JS[] args) throws JSExn { throw new JSExn(
-            "method not found: " + Script.str(method)); }
+            "method not found: " + JSU.str(method)); }
         public String[] getFormalArgs() { return emptystr; }
 
         public Enumeration keys() throws JSExn {
         public String[] getFormalArgs() { return emptystr; }
 
         public Enumeration keys() throws JSExn {
@@ -339,8 +339,8 @@ public interface JS extends Pausable {
         }
 
         public JS get(JS key) throws JSExn {
         }
 
         public JS get(JS key) throws JSExn {
-            //#switch(Script.str(key))
-            case "hasNext": return Script.B(hasNext());
+            //#switch(JSU.str(key))
+            case "hasNext": return JSU.B(hasNext());
             case "next": return next();
             //#end
             return super.get(key);
             case "next": return next();
             //#end
             return super.get(key);