Can’t generate or execute functions in a worker due to eval being disabled, same with string to function execution. It’s a security feature and a good one.
You have to elaborate that. That approach could expose you to a lot of attack vectors.
Inside the worker, we add our service helper functions and the user code that could use our helpers. Please explain more about what attack vectors you are talking about? Thank you.