js_ReportCompileErrorNumber(cx, ts, NULL, JSREPORT_ERROR,
js_ReportCompileErrorNumber(cx, ts, JSREPORT_ERROR,
js_NewRegExpOpt(JSContext *cx, JSTokenStream *ts,                 JSString *str, JSString *opt, JSBool flat){    uintN flags;    jschar *cp;    flags = 0;    if (opt) {	for (cp = opt->chars; *cp; cp++) {	    switch (*cp) {	      case 'g':		flags |= JSREG_GLOB;		break;	      case 'i':		flags |= JSREG_FOLD;		break;	      case 'm':		flags |= JSREG_MULTILINE;		break;	      default: {		char charBuf[2] = " ";		charBuf[0] = (char)*cp;                js_ReportCompileErrorNumber(cx, ts, NULL, JSREPORT_ERROR,                                            JSMSG_BAD_FLAG, charBuf);		return NULL;	      }	    }	}    }    return js_NewRegExp(cx, ts, str, flags, flat);}