Exemplo n.º 1
0
        public JsFunction New <T>(Jint.Delegates.Func <T, JsInstance[], JsInstance> impl, int length) where T : JsInstance
        {
            JsFunction function = new ClrImplDefinition <T>(impl, length, PrototypeProperty);

            function.PrototypeProperty = Global.ObjectClass.New(function);
            //function.Scope = new JsScope(PrototypeProperty);
            return(function);
        }
Exemplo n.º 2
0
 public ClrImplDefinition(Jint.Delegates.Func <T, JsInstance> impl, int length, JsObject prototype)
     : this(false, prototype)
 {
     this.impl   = impl;
     this.length = length;
 }
Exemplo n.º 3
0
 public ClrImplDefinition(Jint.Delegates.Func <T, JsInstance> impl, JsObject prototype)
     : this(impl, -1, prototype)
 {
 }
Exemplo n.º 4
0
 public JsFunctionWrapper(Jint.Delegates.Func <JsInstance[], JsInstance> d, JsObject prototype)
     : base(prototype)
 {
     Delegate = d;
 }