Ejemplo n.º 1
0
        object MarshalJsFunctionHelper(JsFunction func, Type delegateType)
        {
            // create independent visitor
            ExecutionVisitor visitor = new ExecutionVisitor(m_global, new JsScope((JsObject)m_global));

            visitor.PermissionSet = ((ExecutionVisitor)m_global.Visitor).PermissionSet;
            JsFunctionDelegate wrapper = new JsFunctionDelegate(visitor, func, JsNull.Instance, delegateType);

            return(wrapper.GetDelegate());
        }
Ejemplo n.º 2
0
        object MarshalJsFunctionHelper(JsFunction func, Type delegateType)
        {
            JsFunctionDelegate wrapper = new JsFunctionDelegate(m_global.Visitor, func, JsNull.Instance, delegateType);

            return(wrapper.GetDelegate());
        }