Skip to content

Commit 7999143

Browse files
Jake ChampionJakeChampion
Jake Champion
authored andcommitted
run make format on codebase once more
1 parent e9310e2 commit 7999143

File tree

2 files changed

+14
-20
lines changed

2 files changed

+14
-20
lines changed

runtime/js-compute-runtime/builtins/request-response.cpp

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,15 +1308,14 @@ bool Request::setManualFramingHeaders(JSContext *cx, unsigned argc, JS::Value *v
13081308
METHOD_HEADER(1)
13091309

13101310
bool manualFramingHeaders = JS::ToBoolean(args.get(0));
1311-
JS::SetReservedSlot(self, static_cast<uint32_t>(Slots::ManualFramingHeaders), JS::BooleanValue(manualFramingHeaders));
1311+
JS::SetReservedSlot(self, static_cast<uint32_t>(Slots::ManualFramingHeaders),
1312+
JS::BooleanValue(manualFramingHeaders));
13121313
auto handle = request_handle(self);
13131314
host_api::Result<host_api::Void> res;
13141315
if (manualFramingHeaders) {
1315-
res =
1316-
handle.set_framing_headers_mode(host_api::FramingHeadersMode::ManuallyFromHeaders);
1316+
res = handle.set_framing_headers_mode(host_api::FramingHeadersMode::ManuallyFromHeaders);
13171317
} else {
1318-
res =
1319-
handle.set_framing_headers_mode(host_api::FramingHeadersMode::Automatic);
1318+
res = handle.set_framing_headers_mode(host_api::FramingHeadersMode::Automatic);
13201319
}
13211320
if (auto *err = res.to_err()) {
13221321
HANDLE_ERROR(cx, *err);
@@ -1349,10 +1348,8 @@ bool Request::clone(JSContext *cx, unsigned argc, JS::Value *vp) {
13491348
JS::SetReservedSlot(requestInstance, static_cast<uint32_t>(Slots::IsDownstream),
13501349
JS::GetReservedSlot(self, static_cast<uint32_t>(Slots::IsDownstream)));
13511350
JS::RootedValue manualFramingHeaders(
1352-
cx,
1353-
JS::GetReservedSlot(self, static_cast<uint32_t>(Slots::ManualFramingHeaders)));
1354-
JS::SetReservedSlot(requestInstance,
1355-
static_cast<uint32_t>(Slots::ManualFramingHeaders),
1351+
cx, JS::GetReservedSlot(self, static_cast<uint32_t>(Slots::ManualFramingHeaders)));
1352+
JS::SetReservedSlot(requestInstance, static_cast<uint32_t>(Slots::ManualFramingHeaders),
13561353
manualFramingHeaders);
13571354
if (JS::ToBoolean(manualFramingHeaders)) {
13581355
auto res =
@@ -2035,8 +2032,8 @@ JSObject *Request::create(JSContext *cx, JS::HandleObject requestInstance, JS::H
20352032

20362033
if (!hasmanualFramingHeaders) {
20372034
if (input_request) {
2038-
manualFramingHeaders.set(JS::GetReservedSlot(
2039-
input_request, static_cast<uint32_t>(Slots::ManualFramingHeaders)));
2035+
manualFramingHeaders.set(
2036+
JS::GetReservedSlot(input_request, static_cast<uint32_t>(Slots::ManualFramingHeaders)));
20402037
} else {
20412038
manualFramingHeaders.setBoolean(false);
20422039
}
@@ -2678,7 +2675,8 @@ bool Response::setManualFramingHeaders(JSContext *cx, unsigned argc, JS::Value *
26782675
METHOD_HEADER(1)
26792676

26802677
bool manualFramingHeaders = JS::ToBoolean(args.get(0));
2681-
JS::SetReservedSlot(self, static_cast<uint32_t>(Slots::ManualFramingHeaders), JS::BooleanValue(manualFramingHeaders));
2678+
JS::SetReservedSlot(self, static_cast<uint32_t>(Slots::ManualFramingHeaders),
2679+
JS::BooleanValue(manualFramingHeaders));
26822680
auto handle = response_handle(self);
26832681
host_api::Result<host_api::Void> res;
26842682
if (manualFramingHeaders) {
@@ -2695,7 +2693,6 @@ bool Response::setManualFramingHeaders(JSContext *cx, unsigned argc, JS::Value *
26952693
return true;
26962694
}
26972695

2698-
26992696
const JSFunctionSpec Response::static_methods[] = {
27002697
JS_FN("redirect", redirect, 1, JSPROP_ENUMERATE),
27012698
JS_FN("json", json, 1, JSPROP_ENUMERATE),
@@ -2850,9 +2847,8 @@ bool Response::constructor(JSContext *cx, unsigned argc, JS::Value *vp) {
28502847

28512848
if (!hasmanualFramingHeaders) {
28522849
if (is_instance(init_val)) {
2853-
manualFramingHeaders.set(
2854-
JS::GetReservedSlot(init_val.toObjectOrNull(),
2855-
static_cast<uint32_t>(Slots::ManualFramingHeaders)));
2850+
manualFramingHeaders.set(JS::GetReservedSlot(
2851+
init_val.toObjectOrNull(), static_cast<uint32_t>(Slots::ManualFramingHeaders)));
28562852
} else {
28572853
manualFramingHeaders.setBoolean(false);
28582854
}

runtime/js-compute-runtime/builtins/request-response.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ class Request final : public BuiltinImpl<Request> {
129129
BodyUsed = static_cast<int>(RequestOrResponse::Slots::BodyUsed),
130130
Headers = static_cast<int>(RequestOrResponse::Slots::Headers),
131131
URL = static_cast<int>(RequestOrResponse::Slots::URL),
132-
ManualFramingHeaders =
133-
static_cast<int>(RequestOrResponse::Slots::ManualFramingHeaders),
132+
ManualFramingHeaders = static_cast<int>(RequestOrResponse::Slots::ManualFramingHeaders),
134133
Backend = static_cast<int>(RequestOrResponse::Slots::Count),
135134
Method,
136135
CacheOverride,
@@ -202,8 +201,7 @@ class Response final : public BuiltinImpl<Response> {
202201
HasBody = static_cast<int>(RequestOrResponse::Slots::HasBody),
203202
BodyUsed = static_cast<int>(RequestOrResponse::Slots::BodyUsed),
204203
Headers = static_cast<int>(RequestOrResponse::Slots::Headers),
205-
ManualFramingHeaders =
206-
static_cast<int>(RequestOrResponse::Slots::ManualFramingHeaders),
204+
ManualFramingHeaders = static_cast<int>(RequestOrResponse::Slots::ManualFramingHeaders),
207205
IsUpstream = static_cast<int>(RequestOrResponse::Slots::Count),
208206
Status,
209207
StatusMessage,

0 commit comments

Comments
 (0)