js_ReportCompileErrorNumber(cx, ts, NULL, JSREPORT_ERROR,
js_ReportCompileErrorNumber(cx, ts, JSREPORT_ERROR,
WellTerminated(JSContext *cx, JSTokenStream *ts, JSTokenType lastExprType){    JSTokenType tt;    tt = js_PeekTokenSameLine(cx, ts);    if (tt == TOK_ERROR)        return JS_FALSE;    if (tt != TOK_EOF && tt != TOK_EOL && tt != TOK_SEMI && tt != TOK_RC) {#if JS_HAS_LEXICAL_CLOSURE        if ((tt == TOK_FUNCTION || lastExprType == TOK_FUNCTION) &&            cx->version < JSVERSION_1_2) {            /*             * Checking against version < 1.2 and version >= 1.0             * in the above line breaks old javascript, so we keep it             * this way for now... XXX warning needed?             */            return JS_TRUE;        }#endif        js_ReportCompileErrorNumber(cx, ts, NULL, JSREPORT_ERROR,                                    JSMSG_SEMI_BEFORE_STMNT);        return JS_FALSE;    }    return JS_TRUE;}