internal StringConstructor(FunctionPrototype parent, LenientStringPrototype prototypeProp)
   : base(parent, "String", 1) {
   this.originalPrototype = prototypeProp;
   prototypeProp.constructor = this;
   this.proto = prototypeProp;
   this.noExpando = false;
 }
Exemplo n.º 2
0
 internal StringConstructor(FunctionPrototype parent, LenientStringPrototype prototypeProp) : base(parent, "String", 1)
 {
     this.originalPrototype    = prototypeProp;
     prototypeProp.constructor = this;
     base.proto     = prototypeProp;
     base.noExpando = false;
 }
        internal LenientStringConstructor(LenientFunctionPrototype parent, LenientStringPrototype prototypeProp) : base(parent, prototypeProp)
        {
            base.noExpando = false;
            Type type = typeof(StringConstructor);

            this.fromCharCode = new BuiltinFunction("fromCharCode", this, type.GetMethod("fromCharCode"), parent);
        }
 internal LenientStringConstructor(LenientFunctionPrototype parent, LenientStringPrototype prototypeProp)
   : base(parent, prototypeProp) {
   this.noExpando = false;
   Type super = typeof(StringConstructor);
   this.fromCharCode = new BuiltinFunction("fromCharCode", this, super.GetMethod("fromCharCode"), parent);
 }