| Index: test/mjsunit/regexp-string-methods.js
|
| diff --git a/test/mjsunit/regexp-string-methods.js b/test/mjsunit/regexp-string-methods.js
|
| index fa01a33ce4d5e6ef4a850af71f8b4e9a50c7db66..d5ad9c33864fcfed42d7788d77928d3ec8c63133 100644
|
| --- a/test/mjsunit/regexp-string-methods.js
|
| +++ b/test/mjsunit/regexp-string-methods.js
|
| @@ -25,8 +25,6 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -// Flags: --no-harmony-regexp-exec
|
| -
|
| // Regexp shouldn't use String.prototype.slice()
|
| var s = new String("foo");
|
| assertEquals("f", s.slice(0,1));
|
| @@ -43,11 +41,3 @@ assertEquals("g", "foo".charAt(0));
|
| var f2 = new RegExp("[g]", "i");
|
| assertEquals(["G"], f2.exec("G"));
|
| assertTrue(f2.ignoreCase);
|
| -
|
| -// On the other hand test is defined in a semi-coherent way as a call to exec.
|
| -// 15.10.6.3
|
| -// We match other browsers in using the original value of RegExp.prototype.exec.
|
| -// I.e., RegExp.prototype.test shouldn't use the current value of
|
| -// RegExp.prototype.exec.
|
| -RegExp.prototype.exec = function(string) { return 'x'; };
|
| -assertFalse(/f/.test('x'));
|
|
|