Hi all,
Just getting to grips with the API so apologies if I've missed some
existing functionality. But I'd like to create a function from a string,
e.g. provide a list of argument names and then a function body (this is
something JavaScriptCore does and I'm trying to mirror it).
I know I could use JS_Eval and create the function() {} wrapper in a string
too, but that opens the door to the provided function body being able to
escape the function just by throwing in an extra }. Ideally it would be
more secure than that.
Any ideas?
Thanks,
Alastair