@@ -18,7 +18,7 @@ describe("patchFetchCacheSetMissingWaitUntil", () => {
1818 expect ( patchCode ( code , rule ) ) . toMatchInlineSnapshot ( `
1919 "{
2020 let [o4, a2] = (0, d2.cloneResponse)(e3);
21- return globalThis.__openNextAls.getStore().waitUntil(o4.arrayBuffer().then(async (e4) => {
21+ return globalThis.__openNextAls? .getStore()? .waitUntil?. (o4.arrayBuffer().then(async (e4) => {
2222 var a3;
2323 let i4 = Buffer.from(e4), s3 = { headers: Object.fromEntries(o4.headers.entries()), body: i4.toString("base64"), status: o4.status, url: o4.url };
2424 null == $ || null == (a3 = $.serverComponentsHmrCache) || a3.set(n2, s3), F && await H.set(n2, { kind: c2.CachedRouteKind.FETCH, data: s3, revalidate: t5 }, { fetchCache: true, revalidate: r4, fetchUrl: _, fetchIdx: q, tags: A2 });
@@ -203,7 +203,7 @@ describe("patchFetchCacheSetMissingWaitUntil", () => {
203203 // We are dynamically rendering including dev mode. We want to return
204204 // the response to the caller as soon as possible because it might stream
205205 // over a very long time.
206- globalThis.__openNextAls.getStore().waitUntil(cloned1
206+ globalThis.__openNextAls? .getStore()? .waitUntil?. (cloned1
207207 .arrayBuffer()
208208 .then(async (arrayBuffer) => {
209209 const bodyBuffer = Buffer.from(arrayBuffer)
@@ -409,7 +409,7 @@ describe("patchFetchCacheSetMissingWaitUntil", () => {
409409 // We are dynamically rendering including dev mode. We want to return
410410 // the response to the caller as soon as possible because it might stream
411411 // over a very long time.
412- globalThis.__openNextAls.getStore().waitUntil(res
412+ globalThis.__openNextAls? .getStore()? .waitUntil?. (res
413413 .clone()
414414 .arrayBuffer()
415415 .then(async (arrayBuffer) => {
0 commit comments