EDIT: After reading up more on loadstring, I realize that loadstring already does all of the below. All code is only compiled, not executed. You're completely right and I'm make something out of nothing. My bad, I'm wrong, mea culpa. Read and think before you post, people!Robin wrote:Because serializing functions is inherently unsafe, because the function could be malicious.
With my proposed method, one could deserialize the function without worrying about malicious code being called automatically. It would be then up to the user to make sure their data is what they expected.