Index: test/mjsunit/regress/regress-148378.js |
diff --git a/test/mjsunit/regress/regress-2185.js b/test/mjsunit/regress/regress-148378.js |
similarity index 90% |
copy from test/mjsunit/regress/regress-2185.js |
copy to test/mjsunit/regress/regress-148378.js |
index 895f322fc63880b2a5c3f0480673d6f01cace9cd..d37cea1cf75b02888ec59231c65b5b6ac436d45c 100644 |
--- a/test/mjsunit/regress/regress-2185.js |
+++ b/test/mjsunit/regress/regress-148378.js |
@@ -25,12 +25,14 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-var a = []; |
+"a".replace(/a/g, function() { return "c"; }); |
-for (var i = 0; i < 2; i++) { |
- for (var j = 0; j < 30000; j++) { |
- a.push(j); |
+function test() { |
+ try { |
+ test(); |
+ } catch(e) { |
+ "b".replace(/(b)/g, function() { return "c"; }); |
} |
} |
-a.sort(function(a, b) { return a - b; } ); |
+test(); |