2003/11/19 06:18:46
[org.ibex.core.git] / src / org / xwt / js / JSRegexp.java
index ca22fce..37bfe6e 100644 (file)
@@ -263,9 +263,8 @@ public class JSRegexp extends JS {
     }
                     
     
-    public static Object stringSplit(Object o, String s, Object arg0) {
-        // FIXME: reintroduce args.length() < 2 ? Integer.MAX_VALUE : JS.toInt(args.elementAt(1));
-        int limit = JS.toInt(arg0);
+    public static Object stringSplit(String s, Object arg0, Object arg1, int nargs) {
+        int limit = nargs < 2 ? Integer.MAX_VALUE : JS.toInt(arg1);
         if(limit < 0) limit = Integer.MAX_VALUE;
         if(limit == 0) return new JSArray();