Unreviewed. Make the test from r243906 catch the thrown exceptions.
authorsbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Apr 2019 00:28:21 +0000 (00:28 +0000)
committersbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Apr 2019 00:28:21 +0000 (00:28 +0000)
* stress/inferred-types-regex-matches-array.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243920 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JSTests/ChangeLog
JSTests/stress/inferred-types-regex-matches-array.js

index 18c3ecb..840736b 100644 (file)
@@ -1,5 +1,11 @@
 2019-04-04  Saam Barati  <sbarati@apple.com>
 
+        Unreviewed. Make the test from r243906 catch the thrown exceptions.
+
+        * stress/inferred-types-regex-matches-array.js:
+
+2019-04-04  Saam Barati  <sbarati@apple.com>
+
         createRegExpMatchesArray does not respect inferred types
         https://bugs.webkit.org/show_bug.cgi?id=193287
 
index f411212..52fb455 100644 (file)
@@ -39,10 +39,14 @@ function foo() {
 }
 
 for (let i = 0; i < 10000; i++) {
-    foo(i);
+    try {
+        foo(i);
+    } catch { }
 }
 
-let match = "foo".match(/(?<oolProperty1>foo)/);
-match.groups.oolProperty1 = objY;       // This property overlaps with oolProperty1 of structure S3.
-global = match;
-foo();
+try {
+    let match = "foo".match(/(?<oolProperty1>foo)/);
+    match.groups.oolProperty1 = objY;
+    global = match;
+    foo();
+} catch { }