public override JsInstance Execute(IJintVisitor visitor, JsDictionaryObject that, JsInstance[] parameters)
{
try {
//visitor.CurrentScope["this"] = visitor.Global;
JsInstance result = Delegate.DynamicInvoke(new object[] { parameters }) as JsInstance;
visitor.Return(result == null ? JsUndefined.Instance : result);
return that;
}
catch (Exception e) {
if (e.InnerException is JsException) {
throw e.InnerException;
}
throw;
}
}