public object Evaluate(string code, object @event) { if (evaluateFunction == null) { return(null); } Object[] args = new Object[2]; args[0] = code; args[1] = ScriptableObject.CreateWrapper(@event); return(evaluateFunction.Invoke(evaluateFunction.GetParent(), args)); }
public object Invoke(object args = null) { return(function?.Invoke(_this, args)); } //use _engine.HandleJSException(e) or _engine.GetJSErrorMessage(jse)