Пример #1
0
        public ClrCtor(Engine engine, DomConverter converter, Type type) :
            base(engine, null, null, false)
        {
            _type      = type;
            _converter = converter;
            Prototype  = engine.Function.PrototypeObject;
            FastAddProperty("prototype", _converter.GetPrototype(type), false, false, false);

            DomConverter.DefineStatic(this, type);
        }
Пример #2
0
 public ClrFuncCtor(Type clrType,
                    Engine engine, Func <JsValue[], ObjectInstance> act,
                    ObjectInstance prototype)
     : base(engine, null, null, false)
 {
     _act     = act;
     _clrType = clrType;
     FastAddProperty("prototype", prototype, false, false, false);
     DomConverter.DefineStatic(this, clrType);
 }