Beispiel #1
0
        public JsFunction New <T>(JintFunc <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);
        }
Beispiel #2
0
 public ClrImplDefinition(JintFunc <T, JsInstance> impl, int length, JsObject prototype)
     : this(false, prototype)
 {
     this.impl   = impl;
     this.length = length;
 }
 public JsFunctionWrapper(JintFunc <JsInstance[], JsInstance> d, JsObject prototype)
     : base(prototype)
 {
     Delegate = d;
 }
Beispiel #4
0
 public ClrImplDefinition(JintFunc <T, JsInstance> impl, JsObject prototype)
     : this(impl, -1, prototype)
 {
 }