mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-07 23:43:37 +00:00
Allow closures when the JS version is JSVERSION_DEFAULT.
This commit is contained in:
parent
107042b6e2
commit
7299ccee3d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user