Can't you just pass the function object to your script? eg
var c = function(){
...
}
var evaluateEventScript = function(requestObject) {
var resultData;
resultData = requestObject();
}
evaluateEventScript(c);
Or something in this form? this can work without eval or Function constructor. but requires requestObject to be a function object, not a string.
source
share