private static object __STUB__Set(ScriptEngine engine, object thisObj, object[] args)
{
thisObj = TypeConverter.ToObject(engine, thisObj);
if (!(thisObj is MapInstance))
throw new JavaScriptException(engine, ErrorType.TypeError, "The method 'set' is not generic.");
switch (args.Length)
{
case 0:
return ((MapInstance)thisObj).Set(Undefined.Value, Undefined.Value);
case 1:
return ((MapInstance)thisObj).Set(args[0], Undefined.Value);
default:
return ((MapInstance)thisObj).Set(args[0], args[1]);
}
}