Title: [135800] trunk/Source/_javascript_Core
Revision
135800
Author
[email protected]
Date
2012-11-26 18:22:53 -0800 (Mon, 26 Nov 2012)

Log Message

Substitute "allSeparators8Bit" for "allSeperators8Bit" in JSC::jsSpliceSubstringsWithSeparators()
<https://bugs.webkit.org/show_bug.cgi?id=103303>

Reviewed by Simon Fraser.

Fix misspelled word, "Seperators" [sic], in a local variable name in JSC::jsSpliceSubstringsWithSeparators().

* runtime/StringPrototype.cpp:
(JSC::jsSpliceSubstringsWithSeparators):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (135799 => 135800)


--- trunk/Source/_javascript_Core/ChangeLog	2012-11-27 02:10:17 UTC (rev 135799)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-11-27 02:22:53 UTC (rev 135800)
@@ -1,5 +1,17 @@
 2012-11-26  Daniel Bates  <[email protected]>
 
+        Substitute "allSeparators8Bit" for "allSeperators8Bit" in JSC::jsSpliceSubstringsWithSeparators()
+        <https://bugs.webkit.org/show_bug.cgi?id=103303>
+
+        Reviewed by Simon Fraser.
+
+        Fix misspelled word, "Seperators" [sic], in a local variable name in JSC::jsSpliceSubstringsWithSeparators().
+
+        * runtime/StringPrototype.cpp:
+        (JSC::jsSpliceSubstringsWithSeparators):
+
+2012-11-26  Daniel Bates  <[email protected]>
+
         _javascript_ fails to handle String.replace() with large replacement string
         https://bugs.webkit.org/show_bug.cgi?id=102956
         <rdar://problem/12738012>

Modified: trunk/Source/_javascript_Core/runtime/StringPrototype.cpp (135799 => 135800)


--- trunk/Source/_javascript_Core/runtime/StringPrototype.cpp	2012-11-27 02:10:17 UTC (rev 135799)
+++ trunk/Source/_javascript_Core/runtime/StringPrototype.cpp	2012-11-27 02:22:53 UTC (rev 135800)
@@ -339,13 +339,13 @@
     }
 
     Checked<int, RecordOverflow> totalLength = 0;
-    bool allSeperators8Bit = true;
+    bool allSeparators8Bit = true;
     for (int i = 0; i < rangeCount; i++)
         totalLength += substringRanges[i].length;
     for (int i = 0; i < separatorCount; i++) {
         totalLength += separators[i].length();
         if (separators[i].length() && !separators[i].is8Bit())
-            allSeperators8Bit = false;
+            allSeparators8Bit = false;
     }
     if (totalLength.hasOverflowed())
         return throwOutOfMemoryError(exec);
@@ -353,7 +353,7 @@
     if (!totalLength)
         return jsEmptyString(exec);
 
-    if (source.is8Bit() && allSeperators8Bit) {
+    if (source.is8Bit() && allSeparators8Bit) {
         LChar* buffer;
         const LChar* sourceData = source.characters8();
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to