From: yangguo@chromium.org Date: Thu, 3 Jul 2014 14:57:55 +0000 (+0000) Subject: Fix assertion failure in mjsunit/regexp-stack-overflow. X-Git-Tag: upstream/4.7.83~8385 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7acb28a120baa7d7e7b3452d3074ba9c0a19bf83;p=platform%2Fupstream%2Fv8.git 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 --- 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);