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));
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))