X-Git-Url: http://git.megacz.com/?p=org.ibex.js.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FJSScope.java;h=52dafe152d9589e739becac4fadf197f5b1e3b99;hp=5bd3a7626648b87004d97ad9840ed3e5dbbd6f8b;hb=a1e6b7e9307319c0195b0efbe5e5354c128be481;hpb=f637057f12669bb9fe8d76a72e0bfcc898dc0715 diff --git a/src/org/ibex/js/JSScope.java b/src/org/ibex/js/JSScope.java index 5bd3a76..52dafe1 100644 --- a/src/org/ibex/js/JSScope.java +++ b/src/org/ibex/js/JSScope.java @@ -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"); }