DEV Community

Discussion on: How to pass function to Web Workers

Collapse
 
johnkazer profile image
John Kazer

Are there any security issues?

Collapse
 
pclundaahl profile image
Patrick Charles-Lundaahl

This was my first thought, as well.

Collapse
 
elisiondan profile image
Daniel Charvát

The JSONfn uses eval to rebuild the function, so I'd definitely not use that for user's input.