-
Hi !
I am always getting I would have thought this could be possible, the goal is to be able to pass the I tried using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To turn a method into a stand-alone function, you need to bind the method to the object you got it from, not to
Note that this is generally true of all methods in JavaScript, not specific to |
Beta Was this translation helpful? Give feedback.
To turn a method into a stand-alone function, you need to bind the method to the object you got it from, not to
globalThis
:env.MY_SERVICE_BIND.fetch.bind(env.MY_SERVICE_BIND)
Note that this is generally true of all methods in JavaScript, not specific to
fetch
or to service bindings.