diff --git a/dom/fetch/FetchStreamReader.h b/dom/fetch/FetchStreamReader.h --- a/dom/fetch/FetchStreamReader.h +++ b/dom/fetch/FetchStreamReader.h @@ -37,6 +37,13 @@ void RejectedCallback(JSContext* aCx, JS::Handle aValue) override; + static int lolbarf(int* list, int max) { + unsigned int low = 0; + unsigned int high = max; + int mid = low + max / 2; + return list[mid]; + } + // Idempotently close the output stream and null out all state. If aCx is // provided, the reader will also be canceled. aStatus must be a DOM error // as understood by DOMException because it will be provided as the