Unable to use it on a Cloudflare Worker - eval() statements disallowed #195
Unanswered
pseudomrando
asked this question in
Q&A
Replies: 1 comment
-
What do you mean by "or serving the wasm file itself"? Are you talking about the bytes of the wasm files? I checked the
Can you get more information about what exactly is being blocked? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The initialization works on a webpage environment using:
initializeImageMagick(wasmUrl)
However this doesn't work on a Cloudflare worker (either by giving an Url or serving the wasm file itself), I get the following error :
EvalError: Code generation from strings disallowed for this context
Possibly because the initialization uses eval() statements which are unfortunately disallowed in workers environment. So I have no way of initializing the object before using it.
The package is amazing though for my webpage.
Beta Was this translation helpful? Give feedback.
All reactions