internal ErrorConstructor(LenientFunctionPrototype parent, LenientErrorPrototype prototypeProp, GlobalObject globalObject)
   : base(parent, "Error", 2) {
   this.originalPrototype = prototypeProp;
   prototypeProp.constructor = this;
   this.proto = prototypeProp;
   this.type = ErrorType.OtherError;
   this.globalObject = globalObject;
   this.noExpando = false;
 }
示例#2
0
 internal ErrorConstructor(LenientFunctionPrototype parent, LenientErrorPrototype prototypeProp, GlobalObject globalObject) : base(parent, "Error", 2)
 {
     this.originalPrototype    = prototypeProp;
     prototypeProp.constructor = this;
     base.proto        = prototypeProp;
     this.type         = ErrorType.OtherError;
     this.globalObject = globalObject;
     base.noExpando    = false;
 }