SVN commit 1106365 by orlovich: Add the contributed test from pcc for the RegExp.prototype.test lastIndex bug M +5 -0 RegExp.js --- trunk/tests/khtmltests/regression/tests/js/RegExp.js #1106364:1106365 @@ -238,4 +238,9 @@ shouldThrow('("").match(re);'); // ... and not crash +// proper .lastIndex updating for .test +var re = /x/g; +var s = "x"; +shouldBeFalse("re.test(s) && re.test(s)"); + debug("Done.");