+
+ private static class XWTMath extends JS.Obj {
+ public XWTMath() {
+ JS gs = new JS.GlobalScope();
+ put("isNaN",gs.get("isNaN"));
+ put("isFinite",gs.get("isFinite"));
+ put("NaN",gs.get("NaN"));
+ put("Infinity",gs.get("Infinity"));
+ setSeal(true);
+ }
+ public Object get(Object key) {
+ Object ret = super.get(key);
+ if(ret == null) ret = JS.Math.get(key);
+ return ret;
+ }
+ }
+ private static class XWTString extends JS.Obj {
+ public XWTString() {
+ JS gs = new JS.GlobalScope();
+ put("parseInt",gs.get("parseInt"));
+ put("parseFloat",gs.get("parseFloat"));
+ put("decodeURI",gs.get("decodeURI"));
+ put("decodeURIComponent",gs.get("decodeURIComponent"));
+ put("encodeURI",gs.get("encodeURI"));
+ put("encodeURIComponent",gs.get("encodeURIComponent"));
+ setSeal(true);
+ }
+ }