@@ -40,15 +40,17 @@ async function parseData(req) {
40
40
}
41
41
42
42
/**
43
- * @param {import("@cloudflare/workers-types/experimental").ExecutionContext } pctx
43
+ * @param {import("@cloudflare/workers-types/experimental").ExecutionContext } eCtx
44
44
* @param {import("@cloudflare/workers-types/experimental").Request } req
45
45
* @param {Env } env
46
46
* @returns {Promise<Context> }
47
47
*/
48
- export async function makeContext ( pctx , req , env ) {
48
+ export async function makeContext ( eCtx , req , env ) {
49
49
/** @type {Context } */
50
50
// @ts -ignore
51
- const ctx = pctx ;
51
+ const ctx = {
52
+ executionContext : eCtx ,
53
+ } ;
52
54
// @ts -ignore
53
55
ctx . attributes = { } ;
54
56
// @ts -ignore
@@ -75,11 +77,11 @@ export default {
75
77
/**
76
78
* @param {import("@cloudflare/workers-types/experimental").Request } request
77
79
* @param {Env } env
78
- * @param {import("@cloudflare/workers-types/experimental").ExecutionContext } pctx
80
+ * @param {import("@cloudflare/workers-types/experimental").ExecutionContext } eCtx
79
81
* @returns {Promise<Response> }
80
82
*/
81
- async fetch ( request , env , pctx ) {
82
- const ctx = await makeContext ( pctx , request , env ) ;
83
+ async fetch ( request , env , eCtx ) {
84
+ const ctx = await makeContext ( eCtx , request , env ) ;
83
85
84
86
try {
85
87
const overrides = Object . fromEntries ( ctx . url . searchParams . entries ( ) ) ;
0 commit comments