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