3 for (var i = 0; i < 10; i++) {
4 // These two are of a form where we can convert exec() to test().
5 if (!re.exec("abc")) print("huh?");
9 RegExp.prototype.test = 1;
11 for (var i = 0; i < 10; i++) {
12 // These two are the same form, but we've replaced test(), so we must
14 if (!re.exec("abc")) print("huh?"); // don't crash/assert
15 re.exec("abc"); // don't crash/assert