}
- public static JS stringSplit(String s, JS arg0, JS arg1, int nargs) throws JSExn {
+ public static JS stringSplit(JS s_, JS arg0, JS arg1, int nargs) throws JSExn {
+ String s = JS.toString(s_);
int limit = nargs < 2 ? Integer.MAX_VALUE : JS.toInt(arg1);
if(limit < 0) limit = Integer.MAX_VALUE;
if(limit == 0) return new JSArray();