Title: [262974] trunk/Source/_javascript_Core
Revision
262974
Author
[email protected]
Date
2020-06-12 13:56:24 -0700 (Fri, 12 Jun 2020)

Log Message

Unreviewed, address Darin's feedback on r262890.

* runtime/IntlObject.cpp:
(JSC::addScriptlessLocaleIfNeeded):
Use != instead of < for clarity.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (262973 => 262974)


--- trunk/Source/_javascript_Core/ChangeLog	2020-06-12 20:52:02 UTC (rev 262973)
+++ trunk/Source/_javascript_Core/ChangeLog	2020-06-12 20:56:24 UTC (rev 262974)
@@ -1,3 +1,11 @@
+2020-06-12  Ross Kirsling  <[email protected]>
+
+        Unreviewed, address Darin's feedback on r262890.
+
+        * runtime/IntlObject.cpp:
+        (JSC::addScriptlessLocaleIfNeeded):
+        Use != instead of < for clarity.
+
 2020-06-12  Adrian Perez de Castro  <[email protected]>
 
         Build is broken with EVENT_LOOP_TYPE=GLib

Modified: trunk/Source/_javascript_Core/runtime/IntlObject.cpp (262973 => 262974)


--- trunk/Source/_javascript_Core/runtime/IntlObject.cpp	2020-06-12 20:52:02 UTC (rev 262973)
+++ trunk/Source/_javascript_Core/runtime/IntlObject.cpp	2020-06-12 20:56:24 UTC (rev 262974)
@@ -201,7 +201,7 @@
         subtags.append(subtag);
     }
 
-    if (subtags.size() < 3 || subtags[1].length() != 4 || subtags[2].length() > 3)
+    if (subtags.size() != 3 || subtags[1].length() != 4 || subtags[2].length() > 3)
         return;
 
     Vector<char, 12> buffer;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to