mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Version check breaks HTML dialogs.
This commit is contained in:
parent
1175321b05
commit
7fa2321de7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user