Errrk, missed stylebot comments in last commit.
authorbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Sep 2011 01:44:56 +0000 (01:44 +0000)
committerbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Sep 2011 01:44:56 +0000 (01:44 +0000)
* runtime/StringPrototype.cpp:
(JSC::stringProtoFuncSplit):

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/StringPrototype.cpp

index 35c9570..3e5b7d9 100644 (file)
@@ -1,5 +1,12 @@
 2011-09-19  Gavin Barraclough  <barraclough@apple.com>
 
+        Errrk, missed stylebot comments in last commit.
+
+        * runtime/StringPrototype.cpp:
+        (JSC::stringProtoFuncSplit):
+
+2011-09-19  Gavin Barraclough  <barraclough@apple.com>
+
         String#split is buggy
         https://bugs.webkit.org/show_bug.cgi?id=68348
 
index ab90265..76db0c8 100644 (file)
@@ -830,10 +830,10 @@ EncodedJSValue JSC_HOST_CALL stringProtoFuncSplit(ExecState* exec)
 
         // 10. If separator is undefined, then
         if (separatorValue.isUndefined()) {
-            // a.  Call the [[DefineOwnProperty]] internal method of A with arguments "0",
-            //     Property Descriptor {[[Value]]: S, [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true}, and false.
+            // a. Call the [[DefineOwnProperty]] internal method of A with arguments "0",
+            //    Property Descriptor {[[Value]]: S, [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true}, and false.
             result->put(exec, 0, jsStringWithReuse(exec, thisValue, input));
-            // b.  Return A.
+            // b. Return A.
             return JSValue::encode(result);
         }
 
@@ -937,9 +937,9 @@ EncodedJSValue JSC_HOST_CALL stringProtoFuncSplit(ExecState* exec)
             // Zero limt/input length handled in steps 9/11 respectively, above.
             ASSERT(limit);
 
-            do
+            do {
                 result->put(exec, position, jsSingleCharacterSubstring(exec, input, position));
-            while (++position < limit);
+            while (++position < limit);
 
             return JSValue::encode(result);
         }