From eb374adc874f188ee00bfd1ffa48e297a70b4765 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Wed, 5 Aug 1998 05:25:12 +0000 Subject: [PATCH] Version check breaks HTML dialogs. --- js/src/jsparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jsparse.c b/js/src/jsparse.c index 616d5c52a61..1eb6d08d4ff 100644 --- a/js/src/jsparse.c +++ b/js/src/jsparse.c @@ -163,7 +163,7 @@ WellTerminated(JSContext *cx, JSTokenStream *ts, JSTokenType lastExprType) 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) && (cx->version >= JSVERSION_1_0)) { + cx->version < JSVERSION_1_2) { return JS_TRUE; } #endif