1

Closed

Bug at the Marshaller.MarshalJsFunctionHelper

description

The AllowClr Property bug:
    object MarshalJsFunctionHelper(JsFunction func, Type delegateType)
    {
        // create independent visitor
        ExecutionVisitor visitor = new ExecutionVisitor(m_global, new JsScope((JsObject)m_global));
        var v = ((ExecutionVisitor)m_global.Visitor);
        visitor.AllowClr = v.AllowClr;
        visitor.PermissionSet = v.PermissionSet;
        JsFunctionDelegate wrapper = new JsFunctionDelegate(visitor, func, JsNull.Instance, delegateType);
        return wrapper.GetDelegate();
    }
Closed Oct 3, 2014 at 5:43 PM by sebastienros
Jint has been rewritten and this issue should be fixed in the new version. Please check it on https://github.com/sebastienros/jint or on using the nuget package here: https://www.nuget.org/packages/Jint/

comments

sebastienros wrote Aug 16, 2011 at 1:27 AM

Fixed in changeset e21080175364