| Index: src/preparser.cc
|
| diff --git a/src/preparser.cc b/src/preparser.cc
|
| index 7ce8e3d91aa4628d1d5dde2474ac10cc9164bab7..1336857593f621de7f3349c0be30ed86a12cdb7c 100644
|
| --- a/src/preparser.cc
|
| +++ b/src/preparser.cc
|
| @@ -653,7 +653,8 @@ PreParser::Statement PreParser::ParseWhileStatement(bool* ok) {
|
|
|
| bool PreParser::CheckInOrOf(bool accept_OF) {
|
| if (Check(Token::IN) ||
|
| - (accept_OF && CheckContextualKeyword(CStrVector("of")))) {
|
| + (allow_for_of() && accept_OF &&
|
| + CheckContextualKeyword(CStrVector("of")))) {
|
| return true;
|
| }
|
| return false;
|
|
|