Ejemplo n.º 1
0
		public IdFunctionObject(IdFunctionCall idcall, object tag, int id, string name, int arity, Scriptable scope) : base(scope, null)
		{
			if (arity < 0)
			{
				throw new ArgumentException();
			}
			if (name == null)
			{
				throw new ArgumentException();
			}
			this.idcall = idcall;
			this.tag = tag;
			this.methodId = id;
			this.arity = arity;
			this.functionName = name;
		}
Ejemplo n.º 2
0
		public IdFunctionObject(IdFunctionCall idcall, object tag, int id, int arity)
		{
			// API class
			if (arity < 0)
			{
				throw new ArgumentException();
			}
			this.idcall = idcall;
			this.tag = tag;
			this.methodId = id;
			this.arity = arity;
			if (arity < 0)
			{
				throw new ArgumentException();
			}
		}