Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 7abc503

Browse files
committed
Allow byob reads of Request/Response bodies
1 parent 8b6b35b commit 7abc503

File tree

10 files changed

+410
-226
lines changed

10 files changed

+410
-226
lines changed

packages/core/src/standards/event.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from "@miniflare/shared";
1010
import { Response as BaseResponse, fetch as baseFetch } from "undici";
1111
import { DOMException } from "./domexception";
12-
import { Request, Response, kInner, withWaitUntil } from "./http";
12+
import { Request, Response, _kInner, withWaitUntil } from "./http";
1313

1414
export type FetchErrorCode =
1515
| "ERR_RESPONSE_TYPE" // respondWith returned non Response promise
@@ -408,7 +408,7 @@ export class ServiceWorkerGlobalScope extends WorkerGlobalScope {
408408

409409
// noinspection ES6MissingAwait
410410
const waitUntil = Promise.all(event[kWaitUntil]) as Promise<WaitUntil>;
411-
return withWaitUntil(await baseFetch(request[kInner]), waitUntil);
411+
return withWaitUntil(await baseFetch(request[_kInner]), waitUntil);
412412
}
413413

414414
async [kDispatchScheduled]<WaitUntil extends any[] = any[]>(

0 commit comments

Comments
 (0)