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;
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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;
 }
Ejemplo n.º 6
0
 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;
 }