| Index: test/mjsunit/regexp-string-methods.js
|
| diff --git a/test/mjsunit/regexp-string-methods.js b/test/mjsunit/regexp-string-methods.js
|
| index 274e64b5ba2a3ef059d2f163f1753736b8e22409..ef3bf6eaf18a1114f7b1b83fd7f401081a176b38 100644
|
| --- a/test/mjsunit/regexp-string-methods.js
|
| +++ b/test/mjsunit/regexp-string-methods.js
|
| @@ -44,6 +44,8 @@ assertTrue(f2.ignoreCase);
|
|
|
| // On the other hand test is defined in a semi-coherent way as a call to exec.
|
| // 15.10.6.3
|
| -// SpiderMonkey fails this one.
|
| +// 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'; }
|
| -assertTrue(/f/.test('x'));
|
| +assertFalse(/f/.test('x'));
|
|
|