Title: [251418] trunk
Revision
251418
Author
[email protected]
Date
2019-10-21 22:44:31 -0700 (Mon, 21 Oct 2019)

Log Message

Rolling out r251411: Fix is incorrect.
https://bugs.webkit.org/show_bug.cgi?id=203230

Not reviewed.

JSTests:

* stress/incorrect-exception-assertion-in-operationRegExpExecNonGlobalOrSticky.js: Removed.

Source/_javascript_Core:

* dfg/DFGOperations.cpp:

Modified Paths

Removed Paths

Diff

Modified: trunk/JSTests/ChangeLog (251417 => 251418)


--- trunk/JSTests/ChangeLog	2019-10-22 04:58:47 UTC (rev 251417)
+++ trunk/JSTests/ChangeLog	2019-10-22 05:44:31 UTC (rev 251418)
@@ -1,5 +1,14 @@
 2019-10-21  Mark Lam  <[email protected]>
 
+        Rolling out r251411: Fix is incorrect.
+        https://bugs.webkit.org/show_bug.cgi?id=203230
+
+        Not reviewed.
+
+        * stress/incorrect-exception-assertion-in-operationRegExpExecNonGlobalOrSticky.js: Removed.
+
+2019-10-21  Mark Lam  <[email protected]>
+
         Fix incorrect assertion in operationRegExpExecNonGlobalOrSticky().
         https://bugs.webkit.org/show_bug.cgi?id=203230
         <rdar://problem/56460749>

Deleted: trunk/JSTests/stress/incorrect-exception-assertion-in-operationRegExpExecNonGlobalOrSticky.js (251417 => 251418)


--- trunk/JSTests/stress/incorrect-exception-assertion-in-operationRegExpExecNonGlobalOrSticky.js	2019-10-22 04:58:47 UTC (rev 251417)
+++ trunk/JSTests/stress/incorrect-exception-assertion-in-operationRegExpExecNonGlobalOrSticky.js	2019-10-22 05:44:31 UTC (rev 251418)
@@ -1,26 +0,0 @@
-//@ runDefault("--alwaysUseShadowChicken=true", "--jitPolicyScale=0", "--useRandomizingFuzzerAgent=1", "--maxPerThreadStackUsage=1572863")
-//@ slow!
-
-class C {
-    constructor(func) {
-        this.func = func;
-    }
-    runTest() {
-        this.func();
-    }
-}
-function recurseAndTest() {
-    try {
-        recurseAndTest();
-        test.runTest();
-    } catch (e) {
-    }
-}
-const howManyParentheses = 1000;
-const deepRE = new RegExp('('.repeat(howManyParentheses) + ')'.repeat(howManyParentheses));
-let test = 
-    new C(() => {
-        deepRE.exec('');
-    });
-
-recurseAndTest();

Modified: trunk/Source/_javascript_Core/ChangeLog (251417 => 251418)


--- trunk/Source/_javascript_Core/ChangeLog	2019-10-22 04:58:47 UTC (rev 251417)
+++ trunk/Source/_javascript_Core/ChangeLog	2019-10-22 05:44:31 UTC (rev 251418)
@@ -1,5 +1,14 @@
 2019-10-21  Mark Lam  <[email protected]>
 
+        Rolling out r251411: Fix is incorrect.
+        https://bugs.webkit.org/show_bug.cgi?id=203230
+
+        Not reviewed.
+
+        * dfg/DFGOperations.cpp:
+
+2019-10-21  Mark Lam  <[email protected]>
+
         Fix incorrect assertion in operationRegExpExecNonGlobalOrSticky().
         https://bugs.webkit.org/show_bug.cgi?id=203230
         <rdar://problem/56460749>

Modified: trunk/Source/_javascript_Core/dfg/DFGOperations.cpp (251417 => 251418)


--- trunk/Source/_javascript_Core/dfg/DFGOperations.cpp	2019-10-22 04:58:47 UTC (rev 251417)
+++ trunk/Source/_javascript_Core/dfg/DFGOperations.cpp	2019-10-22 05:44:31 UTC (rev 251418)
@@ -1245,9 +1245,12 @@
     unsigned lastIndex = 0;
     MatchResult result;
     JSArray* array = createRegExpMatchesArray(vm, globalObject, string, input, regExp, lastIndex, result);
+    if (!array) {
+        ASSERT(!scope.exception());
+        return JSValue::encode(jsNull());
+    }
+
     RETURN_IF_EXCEPTION(scope, { });
-    ASSERT(array);
-
     globalObject->regExpGlobalData().recordMatch(vm, globalObject, regExp, string, result);
     return JSValue::encode(array);
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to