public static RegExpObject compile(object thisob, object source, object flags)
{
RegExpObject obj2 = thisob as RegExpObject;
if (obj2 == null)
{
throw new JScriptException(JSError.RegExpExpected);
}
return(obj2.compile(((source == null) || (source is Missing)) ? "" : Microsoft.JScript.Convert.ToString(source), ((flags == null) || (flags is Missing)) ? "" : Microsoft.JScript.Convert.ToString(flags)));
}