internal virtual Object Construct(Object[] args){ JSObject newob = new JSObject(null, false); newob.SetParent(this.GetPrototypeForConstructedObject()); Object result = this.Call(args, newob); if (result is ScriptObject || (this is BuiltinFunction && ((BuiltinFunction)this).method.Name.Equals("CreateInstance"))) return result; return newob; }
internal virtual object Construct(object[] args) { JSObject thisob = new JSObject(null, false); thisob.SetParent(this.GetPrototypeForConstructedObject()); object obj3 = this.Call(args, thisob); if (!(obj3 is ScriptObject) && (!(this is BuiltinFunction) || !((BuiltinFunction) this).method.Name.Equals("CreateInstance"))) { return thisob; } return obj3; }
internal virtual Object Construct(Object[] args) { JSObject newob = new JSObject(null, false); newob.SetParent(this.GetPrototypeForConstructedObject()); Object result = this.Call(args, newob); if (result is ScriptObject || (this is BuiltinFunction && ((BuiltinFunction)this).method.Name.Equals("CreateInstance"))) { return(result); } return(newob); }
internal virtual object Construct(object[] args) { JSObject thisob = new JSObject(null, false); thisob.SetParent(this.GetPrototypeForConstructedObject()); object obj3 = this.Call(args, thisob); if (!(obj3 is ScriptObject) && (!(this is BuiltinFunction) || !((BuiltinFunction)this).method.Name.Equals("CreateInstance"))) { return(thisob); } return(obj3); }
internal object Construct(JSObject thisob, object[] args) { JSObject obj2 = new JSObject(null, false); obj2.SetParent(base.GetPrototypeForConstructedObject()); obj2.outer_class_instance = thisob; object obj3 = this.Call(args, obj2); if (obj3 is ScriptObject) { return obj3; } return obj2; }
internal Object Construct(JSObject thisob, Object[] args){ JSObject newob = new JSObject(null, false); newob.SetParent(this.GetPrototypeForConstructedObject()); newob.outer_class_instance = thisob; Object result = this.Call(args, newob); if (result is ScriptObject) return result; return newob; }