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))); }
public static RegExpObject compile(Object thisob, Object source, Object flags) { RegExpObject regExpObject = thisob as RegExpObject; if (regExpObject == null) { throw new JScriptException(JSError.RegExpExpected); } return(regExpObject.compile( source == null || source is Missing ? "" : Convert.ToString(source), flags == null || flags is Missing ? "" : Convert.ToString(flags))); }