Allow closures when the JS version is JSVERSION_DEFAULT.

git-svn-id: svn://10.0.0.236/trunk@4395 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
fur
1998-06-24 05:37:44 +00:00
parent a36a121a82
commit a572d8d419

View File

@@ -159,7 +159,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_2) && (cx->version >= JSVERSION_1_0)) {
return JS_TRUE;
}
#endif