-// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
+// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL ]
package org.xwt.js;
import org.xwt.util.*;
import java.util.*;
/** The JavaScript Math object */
-public class JSMath extends JSCallable {
+public class JSMath extends JS {
public static JSMath singleton = new JSMath();
private static final Double SQRT1_2 = new Double(1/java.lang.Math.sqrt(2));
private static final Double SQRT2 = new Double(java.lang.Math.sqrt(2));
- public Object callMethod(Object method, Object a0, Object a1, Object a2, Object[] rest, int nargs) {
+ public Object callMethod(Object method, Object a0, Object a1, Object a2, Object[] rest, int nargs) throws JSExn {
switch(nargs) {
case 0: {
//#switch(method)
public void put(Object key, Object val) { return; }
- public Object get(Object key) {
+ public Object get(Object key) throws JSExn {
//#switch(key)
case "E": return E;
case "LN10": return LN10;