internal Uint16ArrayConstructor(
     Engine engine,
     Realm realm,
     IntrinsicTypedArrayConstructor functionPrototype,
     IntrinsicTypedArrayPrototype objectPrototype) : base(engine, realm, functionPrototype, objectPrototype, TypedArrayElementType.Uint16)
 {
 }
Beispiel #2
0
 internal IntrinsicTypedArrayPrototype(
     Engine engine,
     Realm realm,
     ObjectInstance objectPrototype,
     IntrinsicTypedArrayConstructor constructor) : base(engine)
 {
     _prototype   = objectPrototype;
     _realm       = realm;
     _constructor = constructor;
 }
        internal TypedArrayConstructor(
            Engine engine,
            Realm realm,
            IntrinsicTypedArrayConstructor functionPrototype,
            IntrinsicTypedArrayPrototype objectPrototype,
            TypedArrayElementType type) : base(engine, realm, new JsString(type.GetTypedArrayName()))
        {
            _arrayElementType = type;

            _prototype           = functionPrototype;
            PrototypeObject      = new TypedArrayPrototype(engine, objectPrototype, this, type);
            _length              = new PropertyDescriptor(JsNumber.PositiveThree, PropertyFlag.Configurable);
            _prototypeDescriptor = new PropertyDescriptor(PrototypeObject, PropertyFlag.AllForbidden);
        }