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