public RegExpObject Invoke(params Object[] args){
RegExpObject regExpObject;
if (args == null || args.Length <= 0 || (regExpObject = args[0] as RegExpObject) == null)
return ConstructNew(args);
if (args.Length > 1 && args[1] != null)
throw new JScriptException(JSError.RegExpSyntax);
return regExpObject;
}