internal JSWrappedMethod(MethodInfo method, Object obj)
: base(obj) {
this.obj = obj;
if (method is JSMethodInfo) method = ((JSMethodInfo)method).method;
this.method = method.GetBaseDefinition();
this.pars = this.method.GetParameters();
if (obj is JSObject && !Typeob.JSObject.IsAssignableFrom(method.DeclaringType))
if (obj is BooleanObject) this.obj = ((BooleanObject)obj).value;
else if (obj is NumberObject) this.obj = ((NumberObject)obj).value;
else if (obj is StringObject) this.obj = ((StringObject)obj).value;
else if (obj is ArrayWrapper) this.obj = ((ArrayWrapper)obj).value;
}