X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FJSScope.java;h=50362204b3a77f4b1c79664096dafb9ee71cdaf2;hp=f7d3d6de93514cdb30a162c285cf6a4bc0724e0e;hb=85c8f402be33df8440511492fb597fba9c2eb45f;hpb=0e9197be8053d1e3bc8699a8f527d34850024cd7 diff --git a/src/org/ibex/js/JSScope.java b/src/org/ibex/js/JSScope.java index f7d3d6d..5036220 100644 --- a/src/org/ibex/js/JSScope.java +++ b/src/org/ibex/js/JSScope.java @@ -50,8 +50,7 @@ public class JSScope extends JS.BT { } public JS _get(JS key) throws JSExn { - if(!JS.isString(key)) return super.get(key); - //#switch(JS.toString(key)) + //#jswitch(key) case "NaN": return NaN; case "Infinity": return POSITIVE_INFINITY; case "undefined": return null; @@ -71,8 +70,7 @@ public class JSScope extends JS.BT { } public JS callMethod(JS method, JS a0, JS a1, JS a2, JS[] rest, int nargs) throws JSExn { - if(!JS.isString(method)) return super.callMethod(method, a0, a1, a2, rest, nargs); - //#switch(JS.toString(method)) + //#jswitch(method) case "parseInt": return parseInt(a0, N(0)); case "parseFloat": return parseFloat(a0); case "isNaN": { double d = toDouble(a0); return d == d ? F : T; }