Bug #315139 (aka 104859). Some discrepancies between JS1.2 behaviour for
matching at empty pattern at end of string. I'm not real confident of this fix since it removes code that seems to explicitly address the issue, but it does fix the bug. git-svn-id: svn://10.0.0.236/trunk@10433 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1320,8 +1320,6 @@ find_split(JSContext *cx, JSString *str, JSRegExp *re, jsint *ip,
|
||||
|
||||
again:
|
||||
/* JS1.2 deviated from Perl by never matching at end of string. */
|
||||
if (cx->version == JSVERSION_1_2 && (size_t)i == str->length)
|
||||
return -1;
|
||||
index = (size_t)i;
|
||||
if (!js_ExecuteRegExp(cx, re, str, &index, JS_TRUE, &rval))
|
||||
return -2;
|
||||
|
||||
Reference in New Issue
Block a user