String s = JS.toString(o);
RE re = arg0 instanceof JSRegexp ? ((JSRegexp)arg0).re : newRE(JS.toString(arg0),0);
REMatch match = re.getMatch(s);
return match == null ? N(-1) : N(match.getStartIndex());
}
String s = JS.toString(o);
RE re = arg0 instanceof JSRegexp ? ((JSRegexp)arg0).re : newRE(JS.toString(arg0),0);
REMatch match = re.getMatch(s);
return match == null ? N(-1) : N(match.getStartIndex());
}