Title: [270383] branches/safari-610.3.7.0-branch/Source/_javascript_Core
Revision
270383
Author
[email protected]
Date
2020-12-02 19:25:52 -0800 (Wed, 02 Dec 2020)

Log Message

Revert "Apply patch. rdar://problem/71911423"

This reverts commit r270370.

Modified Paths

Diff

Modified: branches/safari-610.3.7.0-branch/Source/_javascript_Core/ChangeLog (270382 => 270383)


--- branches/safari-610.3.7.0-branch/Source/_javascript_Core/ChangeLog	2020-12-03 02:56:08 UTC (rev 270382)
+++ branches/safari-610.3.7.0-branch/Source/_javascript_Core/ChangeLog	2020-12-03 03:25:52 UTC (rev 270383)
@@ -1,28 +1,3 @@
-2020-12-02  Russell Epstein  <[email protected]>
-
-        Apply patch. rdar://problem/71911423
-
-    Apply patch. rdar://problem/70289034
-    
-    git-svn-id: https://svn.webkit.org/repository/webkit/branches/safari-610.3.7.1-branch@270359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
-    2020-12-02  Russell Epstein  <[email protected]>
-
-            Apply patch. rdar://problem/70289034
-
-        2020-12-02  Saam Barati  <[email protected]>
-
-                Don't crash when reparsing an arrow function and the parsing invariant is broken.
-                <rdar://problem/70289034>
-
-                Reviewed by Mark Lam.
-
-                Instead, let's turn it into a runtime error for now, since that's better than
-                crashing. We're still not sure how this invariant is broken.
-
-                * parser/Parser.cpp:
-                (JSC::Parser<LexerType>::parseInner):
-
 2020-10-27  Russell Epstein  <[email protected]>
 
         Apply patch. rdar://problem/70733375

Modified: branches/safari-610.3.7.0-branch/Source/_javascript_Core/parser/Parser.cpp (270382 => 270383)


--- branches/safari-610.3.7.0-branch/Source/_javascript_Core/parser/Parser.cpp	2020-12-03 02:56:08 UTC (rev 270382)
+++ branches/safari-610.3.7.0-branch/Source/_javascript_Core/parser/Parser.cpp	2020-12-03 03:25:52 UTC (rev 270383)
@@ -228,9 +228,8 @@
             parameters = parseFunctionParameters(context, parseMode, functionInfo);
 
         if (SourceParseModeSet(SourceParseMode::ArrowFunctionMode, SourceParseMode::AsyncArrowFunctionMode).contains(parseMode) && !hasError()) {
-            // The only way we could have an error while reparsing is if we run out of stack space.
-            if (UNLIKELY(!match(ARROWFUNCTION)))
-                return makeUnexpected("Parser error"_s);
+            // The only way we could have an error wile reparsing is if we run out of stack space.
+            RELEASE_ASSERT(match(ARROWFUNCTION));
             next();
             isArrowFunctionBodyExpression = !match(OPENBRACE);
         }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to