minor bug fixes from moving interfaces
[org.ibex.js.git] / src / org / ibex / js / JSMath.java
index a0edb1a..6e4e231 100644 (file)
@@ -5,7 +5,9 @@
 package org.ibex.js; 
 
 /** The JavaScript Math object */
-class JSMath extends JS {
+class JSMath extends JS.Immutable {
+    private static final JS.Method METHOD = new JS.Method();
+
     private static final JS E       = Script.N(java.lang.Math.E);
     private static final JS PI      = Script.N(java.lang.Math.PI);
     private static final JS LN10    = Script.N(java.lang.Math.log(10));
@@ -15,7 +17,7 @@ class JSMath extends JS {
     private static final JS SQRT1_2 = Script.N(1/java.lang.Math.sqrt(2));
     private static final JS SQRT2   = Script.N(java.lang.Math.sqrt(2));
 
-    public JS callMethod(JS method, JS[] args) throws JSExn {
+    public JS call(JS method, JS[] args) throws JSExn {
         switch(args.length) {
             case 0: {
                 //#switch(Script.toString(method))