renamed Script to JSU
[org.ibex.js.git] / src / org / ibex / js / JSScope.java
index 5bd3a76..52dafe1 100644 (file)
@@ -30,7 +30,7 @@ class JSScope {
     final JS get(JS i) throws JSExn {
         if(i==null) throw new NullPointerException();
         try {
-            return get(Script.toInt(i));
+            return get(JSU.toInt(i));
         } catch(ArrayIndexOutOfBoundsException e) { 
             throw new JSExn("scope index out of range");
         }
@@ -38,7 +38,7 @@ class JSScope {
     final void put(JS i, JS o) throws JSExn {
         if(i==null) throw new NullPointerException();
         try {
-            put(Script.toInt(i), o);
+            put(JSU.toInt(i), o);
         } catch(ArrayIndexOutOfBoundsException e) { 
             throw new JSExn("scope index out of range");
         }