X-Git-Url: http://git.megacz.com/?p=org.ibex.js.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FJS.java;h=096e8f9bbb96ed46faaecde107f460f322729603;hp=a6e64a989886a462b926f981c49c014fa37f499f;hb=a1e6b7e9307319c0195b0efbe5e5354c128be481;hpb=f637057f12669bb9fe8d76a72e0bfcc898dc0715 diff --git a/src/org/ibex/js/JS.java b/src/org/ibex/js/JS.java index a6e64a9..096e8f9 100644 --- a/src/org/ibex/js/JS.java +++ b/src/org/ibex/js/JS.java @@ -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( - "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( - "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( @@ -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( - "method not found: " + Script.str(method)); } + "method not found: " + JSU.str(method)); } 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 { - //#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);