Esempio n. 1
0
 internal DateConstructor(LenientFunctionPrototype parent, LenientDatePrototype prototypeProp)
   : base(parent, "Date", 7) {
   this.originalPrototype = prototypeProp;
   prototypeProp.constructor = this;
   this.proto = prototypeProp;
   this.noExpando = false;
 }
Esempio n. 2
0
 internal LenientDateConstructor(LenientFunctionPrototype parent, LenientDatePrototype prototypeProp)
   : base(parent, prototypeProp) {
   this.noExpando = false;
   Type super = typeof(DateConstructor);
   this.parse = new BuiltinFunction("parse", this, super.GetMethod("parse"), parent);
   this.UTC = new BuiltinFunction("UTC", this, super.GetMethod("UTC"), parent);
 }
 internal DateConstructor(LenientFunctionPrototype parent, LenientDatePrototype prototypeProp) : base(parent, "Date", 7)
 {
     this.originalPrototype    = prototypeProp;
     prototypeProp.constructor = this;
     base.proto     = prototypeProp;
     base.noExpando = false;
 }
        internal LenientDateConstructor(LenientFunctionPrototype parent, LenientDatePrototype prototypeProp) : base(parent, prototypeProp)
        {
            base.noExpando = false;
            Type type = typeof(DateConstructor);

            this.parse = new BuiltinFunction("parse", this, type.GetMethod("parse"), parent);
            this.UTC   = new BuiltinFunction("UTC", this, type.GetMethod("UTC"), parent);
        }