We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5514262 commit a9af430Copy full SHA for a9af430
packages/cloudflare/src/utils/copyExecutionContext.ts
@@ -57,6 +57,7 @@ function makeOverridableDescriptor<T extends ContextType>(
57
if (store.has(method)) return store.get(method);
58
const methodFunction = Reflect.get(ctx, method);
59
if (typeof methodFunction !== 'function') return methodFunction;
60
+ // We should do bind() to make sure that the method is bound to the context object - otherwise it will not work
61
return methodFunction.bind(ctx);
62
},
63
};
0 commit comments