Fix assertion failure in mjsunit/regexp-stack-overflow.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 3 Jul 2014 14:57:55 +0000 (14:57 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 3 Jul 2014 14:57:55 +0000 (14:57 +0000)
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

index b6232a8..637d205 100644 (file)
@@ -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);