Bug 1506657 - Indentation fixes in Stream.cpp. r=jwalden
authorJason Orendorff <jorendorff@mozilla.com>
Fri, 16 Nov 2018 12:38:08 +0000
changeset 503183 cf16da2531eaa81dc0082da8d1ba9c45885428b2
parent 503182 ff90a2f2c6547e2a432ea50d0479184c3283fa8b
child 503184 9fb1b0aeef48a633c30593c5cef6ee10bcfd7f6d
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden
bugs1506657
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1506657 - Indentation fixes in Stream.cpp. r=jwalden Differential Revision: https://phabricator.services.mozilla.com/D11682
js/src/builtin/Stream.cpp
--- a/js/src/builtin/Stream.cpp
+++ b/js/src/builtin/Stream.cpp
@@ -3142,17 +3142,17 @@ CreateReadableByteStreamController(JSCon
     // Step 11: If autoAllocateChunkSize is not undefined,
     if (!autoAllocateChunkSize.isUndefined()) {
         // Step a: If ! IsInteger(autoAllocateChunkSize) is false, or if
         //         autoAllocateChunkSize ≤ 0, throw a RangeError exception.
         if (!IsInteger(autoAllocateChunkSize) || autoAllocateChunkSize.toNumber() <= 0) {
             JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr,
                                       JSMSG_READABLEBYTESTREAMCONTROLLER_BAD_CHUNKSIZE);
             return nullptr;
-    }
+        }
     }
 
     // Step 12: Set this.[[autoAllocateChunkSize]] to autoAllocateChunkSize.
     controller->setAutoAllocateChunkSize(autoAllocateChunkSize);
 
     // Step 13: Set this.[[pendingPullIntos]] to a new empty List.
     if (!SetNewList(cx, controller, ReadableByteStreamController::Slot_PendingPullIntos)) {
         return nullptr;
@@ -3637,18 +3637,18 @@ ReadableByteStreamControllerHandleQueueD
 
     // Step 1: Assert: controller.[[controlledReadableStream]].[[state]] is "readable".
     Rooted<ReadableStream*> stream(cx, controller->stream());
     MOZ_ASSERT(stream->readable());
 
     // Step 2: If controller.[[queueTotalSize]] is 0 and
     //         controller.[[closeRequested]] is true,
     if (controller->queueTotalSize() == 0 && controller->closeRequested()) {
-      // Step a: Perform ! ReadableStreamClose(controller.[[controlledReadableStream]]).
-      return ReadableStreamCloseInternal(cx, stream);
+        // Step a: Perform ! ReadableStreamClose(controller.[[controlledReadableStream]]).
+        return ReadableStreamCloseInternal(cx, stream);
     }
 
     // Step 3: Otherwise,
     // Step a: Perform ! ReadableByteStreamControllerCallPullIfNeeded(controller).
     return ReadableStreamControllerCallPullIfNeeded(cx, controller);
 }
 
 enum BYOBRequestSlots {
@@ -3705,26 +3705,26 @@ js::ByteLengthQueuingStrategy::construct
 
     RootedObject strategy(cx, NewBuiltinClassInstance<ByteLengthQueuingStrategy>(cx));
     if (!strategy) {
         return false;
     }
 
     RootedObject argObj(cx, ToObject(cx, args.get(0)));
     if (!argObj) {
-      return false;
+        return false;
     }
 
     RootedValue highWaterMark(cx);
     if (!GetProperty(cx, argObj, argObj, cx->names().highWaterMark, &highWaterMark)) {
-      return false;
+        return false;
     }
 
     if (!SetProperty(cx, strategy, cx->names().highWaterMark, highWaterMark)) {
-      return false;
+        return false;
     }
 
     args.rval().setObject(*strategy);
     return true;
 }
 
 // Streams spec 6.1.2.3.1. size ( chunk )
 bool
@@ -3755,26 +3755,26 @@ js::CountQueuingStrategy::constructor(JS
 
     Rooted<CountQueuingStrategy*> strategy(cx, NewBuiltinClassInstance<CountQueuingStrategy>(cx));
     if (!strategy) {
         return false;
     }
 
     RootedObject argObj(cx, ToObject(cx, args.get(0)));
     if (!argObj) {
-      return false;
+        return false;
     }
 
     RootedValue highWaterMark(cx);
     if (!GetProperty(cx, argObj, argObj, cx->names().highWaterMark, &highWaterMark)) {
-      return false;
+        return false;
     }
 
     if (!SetProperty(cx, strategy, cx->names().highWaterMark, highWaterMark)) {
-      return false;
+        return false;
     }
 
     args.rval().setObject(*strategy);
     return true;
 }
 
 // Streams spec 6.2.3.3.1. size ( chunk )
 bool