From 7acb28a120baa7d7e7b3452d3074ba9c0a19bf83 Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Thu, 3 Jul 2014 14:57:55 +0000 Subject: [PATCH] Fix assertion failure in mjsunit/regexp-stack-overflow. TBR=machenbach@chromium.org Review URL: https://codereview.chromium.org/364213003 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22203 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/mjsunit/regexp-stack-overflow.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/mjsunit/regexp-stack-overflow.js b/test/mjsunit/regexp-stack-overflow.js index b6232a8..637d205 100644 --- a/test/mjsunit/regexp-stack-overflow.js +++ b/test/mjsunit/regexp-stack-overflow.js @@ -5,7 +5,6 @@ // Flags: --stack-size=100 var result = null; -var type = true; var re = /\w/; re.test("a"); // Trigger regexp compile. @@ -13,10 +12,8 @@ function rec() { try { return rec(); } catch (e) { - if (!(e instanceof RangeError)) type = false; return re.test("b"); } } assertTrue(rec()); -assertTrue(type); -- 2.7.4