コード例 #1
0
ファイル: dateconstructor.cs プロジェクト: ArildF/masters
 internal DateConstructor(LenientFunctionPrototype parent, LenientDatePrototype prototypeProp)
   : base(parent, "Date", 7) {
   this.originalPrototype = prototypeProp;
   prototypeProp.constructor = this;
   this.proto = prototypeProp;
   this.noExpando = false;
 }
コード例 #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);
 }
コード例 #3
0
 internal DateConstructor(LenientFunctionPrototype parent, LenientDatePrototype prototypeProp) : base(parent, "Date", 7)
 {
     this.originalPrototype    = prototypeProp;
     prototypeProp.constructor = this;
     base.proto     = prototypeProp;
     base.noExpando = false;
 }
コード例 #4
0
        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);
        }