Commit 7acb28a1 authored by yangguo@chromium.org's avatar yangguo@chromium.org

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
parent 87dfaa89
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
// Flags: --stack-size=100 // Flags: --stack-size=100
var result = null; var result = null;
var type = true;
var re = /\w/; var re = /\w/;
re.test("a"); // Trigger regexp compile. re.test("a"); // Trigger regexp compile.
...@@ -13,10 +12,8 @@ function rec() { ...@@ -13,10 +12,8 @@ function rec() {
try { try {
return rec(); return rec();
} catch (e) { } catch (e) {
if (!(e instanceof RangeError)) type = false;
return re.test("b"); return re.test("b");
} }
} }
assertTrue(rec()); assertTrue(rec());
assertTrue(type);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment