Unreview, fix test to have a try-catch.
* stress/many-nested-functions-parser-stack-overflow.js:
(catch):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@245163 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/JSTests/ChangeLog b/JSTests/ChangeLog
index b64bc21..8ac5ae6 100644
--- a/JSTests/ChangeLog
+++ b/JSTests/ChangeLog
@@ -1,5 +1,12 @@
2019-05-09 Keith Miller <keith_miller@apple.com>
+ Unreview, fix test to have a try-catch.
+
+ * stress/many-nested-functions-parser-stack-overflow.js:
+ (catch):
+
+2019-05-09 Keith Miller <keith_miller@apple.com>
+
parseStatementListItem needs a stack overflow check
https://bugs.webkit.org/show_bug.cgi?id=197749
diff --git a/JSTests/stress/many-nested-functions-parser-stack-overflow.js b/JSTests/stress/many-nested-functions-parser-stack-overflow.js
index ab3c7d9..25fa527 100644
--- a/JSTests/stress/many-nested-functions-parser-stack-overflow.js
+++ b/JSTests/stress/many-nested-functions-parser-stack-overflow.js
@@ -9,5 +9,10 @@
code += " return 80000;\n";
code += "}\n";
-
-eval(code);
\ No newline at end of file
+
+try {
+ eval(code);
+} catch (e) {
+ if (!(e instanceof RangeError))
+ throw new Error(`threw an error: ${e} but it wasn't a RangeError`);
+}